Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

what is use of static block in java

Static block is run immediately its loaded into memory(ie.,when class is 
loaded into class loader), not when class is 
created like a constructer. Its mostly used to initialize static variables
created in a class.
Source by beginnersbook.com #
 
PREVIOUS NEXT
Tagged: #static #block #java
ADD COMMENT
Topic
Name
6+7 =