This Core Java Quiz assesses knowledge of Java programming fundamentals, including constructors, data types, operators, and control structures. It is designed for learners to test their understanding of core Java concepts, enhancing their coding skills and preparation for software development roles.
True
False
Rate this question:
The number of bytes is compiler dependent.
2
4
8
64
None of the above
Rate this question:
&& operator is used for short-circuited logical AND.
~ operator is the bit-wise XOR operator.
| operator is used to perform bitwise OR and also short-circuited logical OR.
The unsigned right shift operator in Java is >>.
Rate this question:
0
1
2
The program does not compile.
None of the above
Rate this question:
Int[] []x[];
Int *x;
Int x[5];
Int[] x = new int[];
None of the above
Rate this question:
0
1
2
3
None of the above
Rate this question:
S = 2 * s;
Int i = s[0];
S = s + s;
S = s >> 2;
None of the above.
Rate this question:
Test();
Super.test();
Super.super.test();
::test();
C.test();
It is not possible to invoke test() method defined in C from a method in A.
Rate this question:
4
5
6
7
9
None of the above
Rate this question:
Static
Final
Abstract
Native
Volatile
Transient
Rate this question:
T = (boolean) i;
F = d;
D = i;
F = 2.8;
All of the above
None of the above
Rate this question:
True
False
Rate this question:
0
1
2
3
A, b
B, c
C, d
A, b, c, d
None of the above
Rate this question:
Void m() throws IOException{}
Void m() throw IOException{}
Void m(void) throws IOException{}
M() throws IOException{}
Void m() {} throws IOException
All of the above
None of the above
Rate this question:
By invoking the free method on the object.
By calling system.gc() method.
By setting all references to the object to new values (say null).
Garbage collection cannot be forced. The programmer cannot force the JVM to free the memory used by an object.
All of the above
None of the above
Rate this question:
Quiz Review Timeline (Updated): Mar 22, 2023 +
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.