|
No. |
Answer/Output |
|
26 |
Default value of double = 0.0D |
|
27 |
An interface can extend any number of interfaces. |
|
28 |
An interface can be private or protected. |
|
29 |
String class is final, public, serializable. |
|
30 |
A method can return an Exception. |
|
31 |
All wrapper classes are public , serializable, immutable and final. |
|
32 |
Public abstract calss Number extends Objects and implements Serializable. |
|
33 |
Math, Class, Integer and Void are final classes. |
|
34 |
An inner class can extend outer class. |
|
35 |
An outerclass which has all its constructors declared as private cannot be instantiated
by any other outerclass and cannot be extended. This need not be declared final. |
|
36 |
The JVM does not exit after the main method returns or after the daemon threads
created by the applicaiton complete or when an uncaught exception is thrown in a
nondaemon or in a daemon thread. |
|
37 |
The sleeping thread always have the lock on the object. |
|
38 |
Class fields with modifiers static and transient will not be serialized. |
|
39 |
A daemon Thread group can have non daemon threads and does not exist after all the
threads in the groups have finished executing. |
|
40 |
Abstract classes can have constructors. The class cannot be instantiated directly.
It has to be extended to an non-abstract class. The constructors of the extended
calss will call the constructor of the abstract calss implicity or explicitly. |
|
41 |
The class defined in an interface cannot call the methods declared in the interface. |
|
42 |
If a Runtime Exception is thrown in a finalize method, the exception is simply ignored
and the object is garbage collected. |
|
43 |
Threading and garbage collection are platform dependent. |
|
44 |
Once an instance of Integer class has a value then it cannot be changed. |
|
45 |
The garbage collection algorithm in Java is vendor implemented. |
|
46 |
The instanceOf operator cannot be used to determine if one reference is of the same
class as another reference. |
|
47 |
Interfaces cannot have constructors. |
|
48 |
A static method may be overlaoded. |
|
49 |
Methods in an interface contain no body so they cannot access any type of variable. |
|
50 |
The automatic garbage collection of JVM cannot prevent programs from ever running
out of memory. |