|
No. |
Answer/Output |
|
76 |
We cannot instantiate an object of an abstract class. |
|
77 |
Vector and HashMap are thread safe. |
|
78 |
Use of System.exit() or death of thread will prevent execution of code in a finally
block. |
|
79 |
There should have some statements after do keyword; even if the statements are empty
statements.
Examples: do; while(false);
do{;} while(false);
do{}while(false); |
|
80 |
If we try to call the method from a reference to some object whose value is null,
the code will compile but throw NullPointerException at runtime. |
|
81 |
If we try to call a method from null literal, it is a compile time error.
Example:
SOP(null.equals(anyVariable)); |
|
82 |
We can define blank final variable and then initialize it in every constructor.
Alternatively we can initialize the final variable in a initialization block. |
|
83 |
Native method can be static. |
|
84 |
Final method can be static. |
|
85 |
A constant declaration in an interface must not include any modifiers synchronized,
transient, or volatile or Compile Time Error occurs. |
|
86 |
For any non-null reference value a,a.equals(null) results false. |
|
87 |
If a.equals(b) is true, b.equals(c) is false, then a.equals(c) is true. |
|
88 |
If we are accessing the Inner class field and method from withing enclosingclass,
we can skip the enclosing class name. |
|
89 |
As toString method is defined in Object class, System.out.println can be used to
print any object. |
|
90 |
A thread inherits the priority of its parent thread. |
|
91 |
We can use final variable as label inside switch block since the compiler takes
it as constants. |
|
92 |
Reserved words cannot be used as labels |
|
93 |
All objects and classes have locks. |