File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

forward references and declaration order

 
narendra bhattacharya
Ranch Hand
Posts: 66
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
khalid mughal book page no. 407


Can anyone explain this

There is one caveat to the declaration -before-reading rule.: "it does not apply if the initializer expression defines an anonymous class ,as the usage then occur in a different class with its own accessibility rules in the enclosing context....
 
Siva Masilamani
Ranch Hand
Posts: 385
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I did not gor thorugh that book

but this may help you

webpage
 
narendra bhattacharya
Ranch Hand
Posts: 66
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thank you Siva you have given me a good link that made my concept clear....than you..
 
Prithvi Sehgal
Ranch Hand
Posts: 774
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

You must look at this excellent article
as well. Look into ยง8.3.2.3 Restrictions on the use of Fields during Initialization of JLS as well as pointed by this article.
An excellent article written by Corey.

Hope this helps,
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic