View RSS Feed

Recent Blogs Posts

  1. Initializing Instance Members

    by , 04-26-2012 at 05:55 PM
    Usually code is being put for initialization of the instance variable, in constructor. Alternate ways present for initialization of the instance variables by using the constructor are: Final methods & Initializer blocks.
    Instance variable’s initialize blocks look same as the static initializer blocks, but the static keyword is not present in it:
    Java Code:
        // whatever code is needed for initialization goes here
    Initializer blocks are being copied ...