Java   View all facts   Glossary   Help
syntactic unit > scoping unit > block > nested block > initialization block
Next nested blocktry block    Upnested block    Previous nested blockfinally block   

initialization block comparison table
Subject have purpose
instance initialization blockto be executed before any method for a class or instance
static initialization blockto be executed when the class loader loads the class

Next nested blocktry block    Upnested block    Previous nested blockfinally block