Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

static block in java

It is used to create another block before the main class.
  every java codes runs here first.
  Any code gets executed before the main class
    
    static{
    //code is placed between these brackets.
  }
Source by beginnersbook.com #
 
PREVIOUS NEXT
Tagged: #static #block #java
ADD COMMENT
Topic
Name
6+6 =