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
Explain about method local inner classes or local inner classes in java?
What do you understand by private, protected and public?
What is the difference between compile-time polymorphism and runtime polymorphism?
Who is the owner of java?
Why main method is static in java?
What is parseint?
What are identifiers in java?
Does java have a compiler?
What are the drawbacks for singleton class?
How many bytes is a string java?
What is set string?
What are jee technologies?
What is the numeric promotion?
What is a java developer salary?
How many ways can we create singleton class?