This questions are about the core java concepts includeing language fundamentals, objects,interfaces,threads,loops,collections and garbage collections. . .
1,2,4
1,3,6
3,5
5 only
1,2,3,4
1,3,4,5
2,4,5,6
3,4,5,6
New Inner(); //At line 5
New Inner(); //At line 10
New ot.Inner(); //At line 10
New Outer.Inner(); //At line 10
Float[ ] f = new float(3);
Float f2[ ] = new float[ ];
Float[ ]f1 = new float[3];
Float f3[ ] = new float[3];
True
False
Small
Tiny
Huge
Compilation fails
0
7
8
14
AC
BC
ACD
ABCD
Compilation fails
"odd" will always be output.
"even" will always be output.
"odd" will be output for odd values of x, and "even" for even values.
True
False
TreeMap
HashMap
LinkedHashMap
The answer depends on the implementation of the existing instance.
Java.util.ArrayList
Java.util.LinkedHashMap
Java.util.HashMap
Java.util.TreeMap
No statement required.
Import java.io.*;
Import java.io.PrintWriter;
#include java.io.*;
Constant
Null
Default
Implement
True
False
Thread t = new Thread(X);
Thread t = new Thread(X); t.start();
X run = new X(); Thread t = new Thread(run); t.start();
Thread t = new Thread(); x.run();
1,2 and 4
2,5 and 6
3,4 and 7
4,5 and 7
0
1
2
3
Int a = Math.abs(-5);
Int b = Math.abs(5.0);
Int c = Math.abs(5.5F);
Int d = Math.abs(5L);
A B A
A B A B
B B
A B
Quiz Review Timeline +
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.