Answer Posted / madan
static block contains a code which is executed without
object of a class.i.e is excuted at the time of class
loading
| Is This Answer Correct ? | 6 Yes | 1 No |
Post New Answer View All Answers
What are encapsulation, inheritance and polymorphism?
What is the use of join method?
When is finally block not called?
Why lambda expression is used in java?
What is the list interface in java programming?
Suppose if we have variable ' I ' in run method, if I can create one or more thread each thread will occupy a separate copy or same variable will be shared?
What is the difference between the jdk 1.02 event model and the event-delegation model introduced with jdk 1.1?
How do weakhashmap works?
Can we have 2 main methods in java class?
What do you mean by mnemonics?
Explain the pointers in Java?
What will happen if static modifier is removed from the signature of the main method?
Implement 2 stacks with just 1 array. The stack routines must not indicate overflow unless every slot in array is used.
What is the structure of java?
Can you declare an interface method static?