Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Forward reference

 
Sanyev Babu
Ranch Hand
Posts: 132
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Sanyev,

Please refer @ http://www.coderanch.com/t/236387/java-programmer-SCJP/certification/forward-referencing
 
Corey McGlone
Ranch Hand
Posts: 3271
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Or check this out.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic