This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths 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 Head First Android this week in the Android 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
 
It's not a secret anymore!