File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

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.

Anuradha Shanmugam

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

Please refer @

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

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

SCJP Tipline, etc.
I agree. Here's the link:
subject: Forward reference
It's not a secret anymore!