The above code compiles & runs fine.Shouldn't it give compile time error?Coz run method of Thread class is not overriden in child class? [ October 20, 2003: Message edited by: Veena Point ] [ October 20, 2003: Message edited by: Thomas Paul ]
"Continuous effort - not strength or intelligence - is the key to unlocking our potential."
Hi Veena You need to override the run() method of Runnable either directly or indirectly. If you don't, it's an error. The Thread's class run() method if not overriden would not result in any error. The thread would simply not do anything.