File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSP and the fly likes Why start() method Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Why start() method" Watch "Why start() method" New topic

Why start() method

Akhil Nagpal

Joined: Sep 18, 2002
Posts: 5
why we call the start() method of the class extending the Thread class instead of run() method.
Bosun Bello
Ranch Hand

Joined: Nov 06, 2000
Posts: 1510
Calling the start() method will cause the run() method to be called.

So much trouble in the world -- Bob Marley
Nathan Pruett

Joined: Oct 18, 2000
Posts: 4121

start() sets up threading and makes the run() method run in a separate thread. If you just call run(), it will run in the current thread.

Write once, run anywhere, because there's nowhere to hide! - /. A.C.
I agree. Here's the link:
subject: Why start() method
It's not a secret anymore!