ClassNotFoundExceptionClassNotFoundException
A class cannot be found on the classpath at runtime.
ClassCastExceptionAn object is cast to a type that it is not an instance of.
The runtime type of the object is not compatible with the target type in the cast. This often occurs when downcasting from a superclass or when collections contain mixed types.
Use instanceof to check the type before casting. Use generics to ensure type safety at compile time. Review the class hierarchy to ensure the cast is valid.
Object obj = "hello";
Integer i = (Integer) obj;ClassNotFoundExceptionA class cannot be found on the classpath at runtime.
IllegalArgumentExceptionA method receives an argument that is not valid for its expected range or format.
NumberFormatExceptionA string cannot be parsed as a number.
CloneNotSupportedExceptionThe clone() method is called on an object whose class does not implement Cloneable.
NoSuchFieldErrorA field is referenced at runtime but does not exist in the class.
IllegalThreadStateExceptionA thread operation is performed when the thread is not in an appropriate state.