This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Field Initializations Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Field Initializations" Watch "Field Initializations" New topic
Author

Field Initializations

Kali Praveen
Greenhorn

Joined: May 27, 2004
Posts: 10
I was looking at the following example in JLS and couldn't think of why
there is no compilation error on lines 9,10,21,22 where as there is compilation error on line 18. I could get the reasons for other errors except for the errors/non-errors on those lines.


Thanks,
Praveen
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Field Initializations
 
Similar Threads
Initialization
Something weird in JLS (or in JBuilder)
strange code from Jls about initialization of fields
Forword Refferencing Question
Restrictions on the use of Fields during Initialization