Oracle Interview Question

Difference between ClassNotFoundException and NoClassDefFoundError

Interview Answer

Anonymous

Jul 15, 2015

ClassNotFoundException :- Thrown when an application tries to load in a class through its name, but no definition for the class with the specified name could be found NoClassDefFoundError :- Thrown if the Java Virtual Machine tries to load in the definition of a class and no definition of the class could be found.