What are static blocks in java ?
Answer / Mayank Srivastava
Static blocks in Java are used to initialize static variables. They are executed exactly once, when the class is loaded into the JVM. Static blocks can be used for initializing shared resources, setting up constants, or performing some setup work that needs to happen only once per class.
| Is This Answer Correct ? | 0 Yes | 0 No |
How will you reverse a link list without using recursion?
How does multithreading take place on a computer with a single cpu in java programming?
List primitive java types?
What is command line argument
who was the founder of java
32 Answers CTS, HCL, ProKarma,
What does exclamation mean in java?
What is java english?
what really hapens when a object is created using new operator? 1.is it allocates memory to all variables and methods in the class with reference to that object?
What is the requirement of thread in java?
posted in online test
What are the differences between this and super keyword?
Can a static method be overridden in java?