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
What is the gregoriancalendar class in java programming?
How destructors are defined in java?
What is the difference between throw and throws in java?
What is singleton class in ruby?
What is visibility mode?
Difference between == and .equals() ?
How an object is serialized in java?
what is the difference between yielding and sleeping? : Java thread
Differentiate between a class and an object.
What do you mean by Function Overloading in java?
How can we run a java program without making any object?
Is zero a natural number?
Explain the importance of finally block in java?
Why do we create threads in java?
Define an abstract class with reference to java.