Some questions regarding Initialization Block in Java.

Posted by kunjaan on Stack Overflow See other posts from Stack Overflow or by kunjaan
Published on 2010-04-24T04:20:03Z Indexed on 2010/04/24 4:23 UTC
Read the original article Hit count: 338

Filed under:
|
  1. Where have you mostly used the initialization block?
  2. Can you use these to assign values to static instance variables?
  3. How is this different from assigning using a constructor?
  4. My book says that the initialization block is executed when the "class is loaded". What does loading a class mean?

© Stack Overflow or respective owner

Related posts about java

Related posts about initialization-block