File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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:
subject: threads!
It's not a secret anymore!