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
When will we prefer to use set and list in java and why?
What is ++ a in java?
How transient variable is different from volatile variable?
What methodology can be employed to locate substrings inside a string?
What are advantages of using Java?s layout managers than windowing systems?
What is the difference between replace and replace all?
What is get () in java?
describe synchronization in respect to multithreading? : Java thread
How can I debug the Java security exceptions and AccessControlExceptions?
What is the advantage of preparedstatement over statement?
Can you give names of Container classes?
How do you define a method?
What is difference between string and stringbuffer?
What is array list in java?
What is reflexive association?