DIFFERENCE BETWEEN NOCLASSDEFFOUNDERROR AND CLASSNOTFOUNDEXCEPTION?

Mayank Tripathi

Total Post:807

Points:4035
Posted by  Mayank Tripathi
 841  View(s)
Ratings:
Rate this:
  1. Mayank Tripathi

    Post:807

    Points:4035
    Difference between noclassdeffounderror and classnotfoundexception?

    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.

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!