• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

static initialiser blocks

 
Soni Prasad
Ranch Hand
Posts: 97
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Am I right that the variables defined in static initializer blocks are local to it and can not be used outside the block? If it is so then What is the need of these blocks?
Can any body tell me about some detailed online document on static initializers.

soni.
 
S.L.Narayanan
Ranch Hand
Posts: 431
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Soni

The following is a good article on static initializers.

Static Initializer
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic