Here is what JDK 1.3 documentation say about destroy method of Thread public void destroy() Destroys this thread, without any cleanup. Any monitors it has locked remain locked. (This method is not implemented.) Attention to last statement. Does it mean that it is not implemented in JDK or it is not implemented in Java 2? Do we have to ignore the fact that it is not implemented for exam purpose?
Perhaps "Not implemented" means implementation left to the JVM vendor. I am not very sure, but just guessing. IMO this is an advanced concept, and for the purpose of SCJP, I am sure you can ignore this method. Please revisit the SCJP objectives so that you know what is covered under Threads for the exam. Ajith
Open Group Certified Distinguished IT Architect. Open Group Certified Master IT Architect. Sun Certified Architect (SCEA).
Yes the destroy method is not implemented in Jdk1.3. This may mean that it might be implemented in future versions of the Jdk. Infact if you see the source code of Thread class, the destroy method simply throws a NoSuchMethodError. I don't think this is on the exam objectives list.