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 Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "threads!" Watch "threads!" New topic


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?

class boon extends Thread {
public void run() {
System.out.println("In run");
System.out.println("Leaving run");
public static void main(String args []) {
(new boon()).start();
Mini Pilla
Ranch Hand

Joined: Jul 15, 2001
Posts: 112
Sun does not test u for deprecated methods. and the result will b "In run".. ,never exits
[This message has been edited by Rajani Katta (edited August 31, 2001).]
I agree. Here's the link: http://aspose.com/file-tools
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