File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 Java 8 in Action this week in the Java 8 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).]
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: threads!
 
Similar Threads
method params!
A question for Beginners - 3
Exeptions with Threads
why doesnt this get compiled?
I am confused about the out put of this code