Home > DeveloperSection > Interviews > Difference between noclassdeffounderror and classnotfoundexception?

Posted on    September-02-2015 12:49 AM

 Java Exception Handling  Java  Error 
 1 Answer(s)
  766  View(s)
Rate this:

Mayank Tripathi
Mayank Tripathi

Total Post:807

Posted on    September-02-2015 12:49 AM

java.lang.NoClassDefFoundError occurs when a particular class was present during Compile time but not available during run time by any reason, while java.lang.ClassNotFoundException comes when class loaded explicitly during runtime.

Don't want to miss updates? Please click the below button!

Follow MindStick