Question - What is ClassDefNotFoundException and NoClassDefFoundError and explain differences between these two?
Answer -
Given a class A..
A ClassNotFoundException means that the classloader cannot load class A.
A ClassDefNotFoundError means that the classloader can load class A, but cannot instantiate it because it cannot load the other classes that class A depend on.