Tuesday, 3 March 2015

what is difference between ClassNotFoundException and NoClassDefFoundError in JAVA

ClassNotFoundException:
For dynamically provided class names at runtime if the corresponding .class file name not available then we will get the runtime exception saying CallsNotFoundException. It is Checked Exception.

NoClassDefFoundError:

For hard coded class names at runtime the corresponding .class file not availbale then we will get exception called NoClassDefFoundError. It is UnChecked Exception

For better understanding see the link:
https://www.youtube.com/watch?v=pZw6T-hNhjM

No comments:

Post a Comment