This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Forward reference,very confused rules Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Reply Bookmark "Forward reference,very confused rules" Watch "Forward reference,very confused rules" New topic
Author

Forward reference,very confused rules

Shiva Mohan
Ranch Hand

Joined: Jan 05, 2006
Posts: 465
http://radio.javaranch.com/corey/2004/05/13/1084483439000.html

I don�t able to get the below three rules.Can anyone please explain each one as coding.

The declaration of a member needs to appear before it is used only if the member is an instance (respectively static) field of a class or interface C and all of the following conditions hold:

�The usage occurs in an instance (respectively static) variable initializer of C or in an instance (respectively static) initializer of C.
�The usage is not on the left hand side of an assignment.
�C is the innermost class or interface enclosing the usage.
wise owen
Ranch Hand

Joined: Feb 02, 2006
Posts: 2023
What are the forward reference rules?
There is an example to match rules.
Shiva Mohan
Ranch Hand

Joined: Jan 05, 2006
Posts: 465
Thank you very much wise.This is what exactly i want.I have read that excellent explanation and got it easily.
Thanks again.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Forward reference,very confused rules
 
Similar Threads
Forward reference
Illegal forward reference
What is the result of the following codes?
Static Block
static and instance variables