wood burning stoves 2.0*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes threads! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "threads!" Watch "threads!" New topic
Author

threads!

ashok khetan
Ranch Hand

Joined: Jul 29, 2001
Posts: 153
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

Joined: Jul 15, 2001
Posts: 112
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).]
 
wood burning stoves
 
subject: threads!
 
Similar Threads
why doesnt this get compiled?
method params!
A question for Beginners - 3
Exeptions with Threads
I am confused about the out put of this code