This JAVA FUNDAMENTALS TEST assesses knowledge in Java programming, covering string operations, float declarations, character ranges, Java keywords, and reserved words. Ideal for learners aiming to enhance their Java programming skills.
1,2,4
1,3,6
2,3,4
2,5,6
Rate this question:
-128 to 127
-232 to -231
0 to 32767
0 to 65535
Rate this question:
Class, if, void, long, Int, continue
Goto, instanceof, native, finally, default, throws
Try, virtual, throw, final, volatile, transient
Strictfp, constant, super, implements, do
Byte, break, assert, switch, include
Rate this question:
Method
Native
Subclasses
Reference
Array
Rate this question:
Char c1 = 064770;
Char c2 = 'face';
Char c3 = 0xbeef;
Char c4 = \u0022;
Char c5 = '\iface';
Char c6 = '\uface';
Rate this question:
-2147483648 and 1
0x80000000 and 0x00000001
-2147483648 and -1
1 and -2147483648
Rate this question:
True
False
Rate this question:
True
False
Rate this question:
Ok
Dokey
Ok dokey
Compilatioon error
Rate this question:
True
False
Rate this question:
“equal” is printed, “s3 eq s4” is printed.
“equal” is printed only.
“s3 eq s4” is printed only.
Nothing is printed.
Rate this question:
The >> operator shifts left and the >>> operator shifts right.
The >> operator shifts right and the >>> operator shifts left.
The >> operator fills the shifted out high order bits based on the sign bit and the >>> operator fills the high order bits with zeros.
The >>> operator fills the shifted out high order bits based on the sign bit and the >>> operator fills the high order bits with zeros.
Rate this question:
True
False
Rate this question:
Public
Private
Transient
Friendly
Vagrant
Rate this question:
String result = d + i;
Double result = i / j;
Int result = l * d;
String result = s + l; Continue to next questionSubmit Quiz Which of the f... Given the fo...The character pair ?...Default value of the...Extended assignment ...Which of the followi...Which of the followi...If you try to access...When you convert a d...Choose which is not ...Choose the options t...Choose the operation...Which three are vali...What is the numerica...Which one of these l...Which is a valid key...Which is a reserved ...Which three are vali...What will be the out...String is a primitiv...The operations y >... ...The expression (y &g...Which statements abo...What is the differen...null is a keyword in...Which of the followi...What will be output ...What will be output ...
J=i< Continue to next questionSubmit Quiz Which of the f... Given the fo...The character pair ?...Default value of the...Extended assignment ...Which of the followi...Which of the followi...If you try to access...When you convert a d...Choose which is not ...Choose the options t...Choose the operation...Which three are vali...What is the numerica...Which one of these l...Which is a valid key...Which is a reserved ...Which three are vali...What will be the out...String is a primitiv...The operations y >... ...The expression (y &g...Which statements abo...What is the differen...null is a keyword in...Which of the followi...What will be output ...What will be output ...
J=i< Continue to next questionSubmit Quiz Which of the f... Given the fo...The character pair ?...Default value of the...Extended assignment ...Which of the followi...Which of the followi...If you try to access...When you convert a d...Choose which is not ...Choose the options t...Choose the operation...Which three are vali...What is the numerica...Which one of these l...Which is a valid key...Which is a reserved ...Which three are vali...What will be the out...String is a primitiv...The operations y >... ...The expression (y &g...Which statements abo...What is the differen...null is a keyword in...Which of the followi...What will be output ...What will be output ...
Rate this question:
-2
2.0
-3
-3.0
Rate this question:
14
0
6
12
Rate this question:
++
?:
&&
=
Rate this question:
C=c+i;
S+=i;
I+=s;
C+=s;
Rate this question:
True
False
Rate this question:
True
False
Rate this question:
True
False
Rate this question:
2variable
Variable2
_whatavariable
_3_
$anothervar
#myvar
Rate this question:
Byte
Char
Boolean
Float
Double
Rate this question:
It is automatically initialized to some garbage value
Shows a run time error
Assigns a null value to the variable
Shows compile time error
Rate this question:
True
False
Rate this question:
The instanceof operator is a binary operator that determines whether an object reference is an instance of the class, interface, or array type specified by the right operand.
The instanceof operator can be used with primitive types.
The instanceof operator returns a boolean value of true if the left operand references a non-null object of class
The instanceof operator returns false if none of the preceding conditions are met or if the left operand is null.
Rate this question:
Cannot be initialized before invoking any constructor
Accessible anywhere in the class
Static variables are initialized at class load time
Cannot have the same name as the class
Rate this question:
Interface
String
Float
Unsigned
Rate this question:
Quiz Review Timeline (Updated): Jan 12, 2025 +
Our quizzes are rigorously reviewed, monitored and continuously updated by our expert board to maintain accuracy, relevance, and timeliness.
Wait!
Here's an interesting quiz for you.