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

Posted on    September-02-2015 12:49 AM

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

Mayank Tripathi
Mayank Tripathi

Total Post:807

Points:4035
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