This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Customer Requirements for Developers and have Marcho Behler on-line!
See this thread for details.
The moose likes Java in General and the fly likes Constructor inside the static block Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Customer Requirements for Developers this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Constructor inside the static block" Watch "Constructor inside the static block" New topic
Author

Constructor inside the static block

Raveendran Hs
Greenhorn

Joined: Feb 05, 2010
Posts: 23

Is it possible to write the constructor inside the static block of code.
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 20049
    
  30

Why don't you try it yourself?


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions How To Answer Questions
 
Don't get me started about those stupid light bulbs.
 
subject: Constructor inside the static block
 
It's not a secret anymore!