WizIQ helps you learn and teach online - any subject you can think of!
Join for FREE

Java Quiz online Test

What is the key word used in java to create an object
this
new
sync
obj
Find the reserved word in java from the following
off
on
new
none of the above
what is the correct syntax for java main method from the below
public void main(String[] args)
public static void main(string[] args)
public static void main()
public static void main(String args[])
What is the output of the following StringBuffer sb1 = new StringBuffer('Amit'); StringBuffer sb2= new StringBuffer('Amit'); String ss1 = 'Krishna'; System.out.println(sb1==sb2); System.out.println(sb1.equals(sb2)); System.out.println(sb1.equals(ss1)); System.out.println('Poddar'.substring(3));
false false false dar
false true false Poddar
true true false dar
Compiler Error
Which one in the following does not extend java.lang.Number
Integer
Boolean
Long
Short
State TRUE or FALSE A null reference may be used to access a static variable or method
TRUE
FALSE
State TRUE or FALSE Native methods can be 'abstract'
TRUE
FALSE
Which of the following is not a Java keywords
main
transient
integer
try
Which of the following will compiling without warning or error?
float f='1.3';
char c='a';
boolean b=null;
int i=10;
In Java, an int variable occupies how many BYTES
1
4
2
5














































Description:

This Quiz Contains simple basic java questions.

Comments
roger
By: roger
829 days 3 hours 45 minutes ago

there is no answer to explain the questions?

Deadsoul
By: Deadsoul
790 days 20 hours 23 minutes ago

such a simple test u cant crack out roger......?

jagadeesh
By: jagadeesh
539 days 15 hours 25 minutes ago

4th Q seems to be wrong ,..check it...
n 9th Q has 2 options

chhaya
By: chhaya
437 days 23 hours 47 minutes ago

good one

Ashish
By: Ashish
263 days 3 hours 8 minutes ago

some one has two correct answer,

S.FAYAZUDDIN
By: S.FAYAZUDDIN
200 days 3 hours 29 minutes ago

GOOD IT DEVELOPS MY BASIC IN JAVA.I LIKED IT.TRY IT.

anil singh
By: anil singh
173 days 6 hours 49 minutes ago

good question but I want to play more question

Want to learn?

Sign up and browse through relevant courses.

Name:
Your Email:
Password:
Country:
Contact no.:


Area code Number
Subject you are interested in:
Word verification: (Enter the text as in image)


Sign Up Already a member? Sign In
I agree to WizIQ's User Agreement & Privacy Policy
1 Follower
Tests: 2

Your Facebook Friends on WizIQ

More Tests By Author

Verbal Test for CAT
10 Questions | 156 Attempts