Answer Posted / srinivasa
Static block is executed when the class is loaded into the
memory before the main(). Only once it will be executed.
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
How do I print a “?
Define an enumeration?
Can we have multiple catch block for a try block?
Which is better ascii or unicode?
What is the program compilation process?
What is constructor and its types?
Can we use synchronized block for primitives?
What is a native method in java programming?
If you are given the name of the function at run time how will you invoke the function?
What is java Applet?
What is identifier give example?
What is final method?
why java uses class level type casting ?
What are the differences between string and stringbuffer?
Explain about static nested classes in java?