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

threads!

 
ashok khetan
Ranch Hand
Posts: 153
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all,
can u pl explain what will be the output of the following code? One more thing does Sun test the candidates on deprecated methods?
code:

class boon extends Thread {
public void run() {
System.out.println("In run");
suspend();
resume();
System.out.println("Leaving run");
}
public static void main(String args []) {
(new boon()).start();
}
}
 
Mini Pilla
Ranch Hand
Posts: 112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Sun does not test u for deprecated methods. and the result will b "In run".. ,never exits
Thanx
Rajani
[This message has been edited by Rajani Katta (edited August 31, 2001).]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic