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

Need answer to the question

 
gurpeet singh
Ranch Hand
Posts: 924
1
Fedora Java Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
consider the following codelistng



what will be the answer

1. 1 2
2. compile time
3. Runtime error.


Please explain ..
 
John Jai
Rancher
Posts: 1776
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Gurpeet,

What happened when you try this code? Did you get any compile time error?

Please read ShowSomeEffort.

If you need explanation on why the error occurs or why it did not work the way you thought it should, you can point that and ask a specific question.
 
gurpeet singh
Ranch Hand
Posts: 924
1
Fedora Java Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks John for the reply. I would surely read the Show Some Efforts and will run the code and repost my question
 
John Jai
Rancher
Posts: 1776
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
gurpeet singh wrote:...and repost my question

You are welcome and thanks for showing some effort.

Please also note that re-posting is not necessary as we intend to UseOneThreadPerQuestion.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic