permaculture playing cards
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes forward referencing 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 referencing" Watch "forward referencing" New topic

forward referencing

rani bedi
Ranch Hand

Joined: Feb 06, 2001
Posts: 358
Can anyone explain me why Test2 runs fine where as Test1 gives a compile time error about forward referencing?

Cheers,<br />Rani<br />SCJP, SCWCD, SCBCD
Anupam Sinha
Ranch Hand

Joined: Apr 13, 2003
Posts: 1090
Hi Parmeet
A few hours before we were discussing the same hing. Check out this thread.
I agree. Here's the link:
subject: forward referencing
It's not a secret anymore!