NoSuchMethodError

When the Thread class was designed, certain methods were not immediately supported. To avoid changing the interface to the Thread class, most of these methods were simply written to throw the NoSuchMethodError. As more functionality has been added, fewer of these methods now throw this error condition. As of this writing, the only method that throws this error object is the destroy() method of the Thread class (see Appendix A).

Get Java Threads, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.