Answers for "static initializer block in java"

0

static block

Static Block:
 used for initializing statics members,
it belongs to the class and only one copy
and runs only once and before everything

I use it in configuration.reader class
  in my framework
Posted by: Guest on January-05-2021
0

static init block java

static {
    // whatever code is needed for initialization goes here
}
Posted by: Guest on July-17-2021

Browse Popular Code Answers by Language