Top Categories
7.16 How to use Static Block in Java Tutorial
- Category:
- Sub Category:
Printing Something without any statement in Main Method. Static Blocks are called before main Method. Static Blocks are called as soon as your class is loaded in JVM. Static block is a block of code which is preceded by the static keyword. Static block are also called initialization block .It can
Printing Something without any statement in Main Method. Static Blocks are called before main Method. Static Blocks are called as soon as your class is loaded in JVM. Static block is a block of code which is preceded by the static keyword. Static block are also called initialization block .It can be used to print something without any statement in Main Method. Static Blocks are called before main Method. Static Blocks are called as soon as your class is loaded in JVM.