Sunday, June 15, 2014

Java initialization -- Static vs code block

Static code block gets called once

code block gets called on each instantiation

simples

non static block actually get copied into the compiler

No comments:

Post a Comment