File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes Illegal forward reference Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Illegal forward reference" Watch "Illegal forward reference" New topic

Illegal forward reference

Shardul Kumar

Joined: May 24, 2009
Posts: 12

Whats exactly happens here? Why am I getting an error while printing the value of x in the static block?
prem pillai
Ranch Hand

Joined: Nov 02, 2007
Posts: 87
I agree. Here's the link:
subject: Illegal forward reference
It's not a secret anymore!