The Thread class's run() method does nothing. According to the docs:
If this thread was constructed using a separate Runnable run object, then that Runnable object's run method is called; otherwise, this method does nothing and returns.
But that's not 'nothing'. If you pass the Thread a Runnable object it will start it up ie
as per the second example in the javadocs, otherwise it will do nothing and end. It does sit there nicely for you to override when you extend the Thread class though...
note the difference between the run() and start() method. the run() method locks the current thread, but the start() method returns directly after firing the new thread.
Bijesh K, Welcome to JavaRanch! We ain't got many rules 'round these parts, but we do got one. Please change your display name to comply with The JavaRanch Naming Policy. Thanks Pardner! Hope to see you 'round the Ranch!