Q.1:
What does a synchronized method use as a mutex in Java?7
A.
A globally declared mutex.
B.
The method's mutex.
C.
No Option
D.
No Option
Q.2:
Are static fields of a class included in serialization?7
A.No
B.
Yes
C.
No Option
D.
No Option
Q.3:
public class SomeClass { public static void main(String[] args) { System.out.println(((String)null).toUpperCase()); } } What is the result of the following program?
A.The code throws NullPointerException.%
B.
The code prints NULL on console.
C.
No Option
D.
No Option
Q.4:
Non-static attributes can be accessed without an instance of the class.G
A.
True
B.
Only if they are private
C.False
D.
Only if they are public
Q.5:
public class SomeClass { public static void main(String[] args) { System.out.println((String)null); } } What is the result of the following program?
A.The code prints "null" on console.*
B.
The code throws NullPointerException.%
C.
No Option
D.
No Option
Q.6:
what are the parts of JNDI architecture'
A.
JNDI SPI
B.
Java API
C.JNDI API and JNDI SPI
D.
JNDI API
Q.7:
Which of these is the wildcard symbol for use in generic type specification?L
A.
&
B.
!
C.?
D.
%
Q.8:
Is "main" a keyword in Java?
A.No
B.
Yes
C.
No Option
D.
No Option
Q.9:
SWING Toolkit contains
A.component set (subclasses of JComponent),support classes,interfacesC
B.
interfaces,component set (subclasses of JComponent)3
C.
component set (subclasses of JComponent)(
D.
support classes,interfaces
Q.10:
Java interfaces can extend...
A.
final classes.
B.
one other interface.
C.
nothing: extension is not valid for interfaces./