what is the difference between static block and static
method
Answer Posted / aluru srinivasa rao
static block is executed first even before constructor is
invoked,static methods are invoked from a static method.
| Is This Answer Correct ? | 8 Yes | 1 No |
Post New Answer View All Answers
Explain wait(), notify() and notifyall() methods of object class ?
How transient variable is different from volatile variable?
What is meant by method overriding?
What are 3 data types?
What is called module?
What is the class in java?
State differences between C and Java?
What is the importance of hashcode() and equals() methods?
What is a modifier?
What is the use of default method in interface in java? Explain
How are destructors defined in java?
What is difference between hashset and hashmap?
What is bom encoding?
what are three ways in which a thread can enter the waiting state? Or what are different ways in which a thread can enter the waiting state? : Java thread
What is role of void keyword in declaring functions?