jQuery in Action, 2nd edition*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Forward reference Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Forward reference" Watch "Forward reference" New topic
Author

Forward reference

Sanyev Babu
Ranch Hand

Joined: Dec 18, 2003
Posts: 132
Can anyone explain to me why this code produces the output 0



Where as this code produces a forward reference compilation error.



Thanks
Sanyev
Anuradha Shanmugam
Greenhorn

Joined: May 09, 2004
Posts: 8
Hi Sanyev,

Please refer @ http://www.coderanch.com/t/236387/java-programmer-SCJP/certification/forward-referencing


Anuradha<br />(SCJP 1.4)
Corey McGlone
Ranch Hand

Joined: Dec 20, 2001
Posts: 3271
Or check this out.


SCJP Tipline, etc.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Forward reference
 
Similar Threads
Variable initialization
forward refrerences
Forward Referencing
please explain why the compiler is not complaining and why the output is 0
please explain me the output of the following programs