Static Blocks

  • An unnamed block in a class prefixed by the static keyword.
  • Invokation
    • Invoked once at the beginning of the program (when the class is loaded in the memory).
    • Invoked before constructor

For details, Order of Invokation of initializer blocks and constructor


Backlinks