Relative Content

Tag Archive for javaexception

Why do we use super() while creating custom exceptions in Java?

If we use super() to access Throwable class’ printStackTrace() method as that is what is used by DefaultExceptionHandler, then that could be done with this also as because of inheritance, printStackTrace is available in our own custom defined exception class as well.