hi! can u pl expalin the given code and its output?? What exactly the destroy() method does?? thanx. ashok. ______________ public class fort extends Thread { public void run() { System.out.println("hi"); System.out.println("bye"); } public static void main(String[] args) { fort f = new fort(); f.start(); f.destroy(); System.out.println("in Main"); } }
It throws a java.lang.NoSuchMethodError at runtime since the destrot method is not implemented !! Look at the API, plenty of information available there ! Val