CodesJava

Easy learning with example program codes

what is static block in java?


Instance initializer block is a mechanism provided by java compiler to define a group of statements common to all constructors at a single place. At the compilation time, compiler moves these statements at the beginning of all constructors after super. It is can also be used to initialize the instance variable.

Read more



Copyright © 2018 CodesJava DMCA.com Protection Status SiteMap