It may be because you are using inheritance and your super class constructor has a throws clause in its declaration.
If your super class has a throws clause in its constructor declaration, you must do the same in your child class constructor in order to eliminate this compiler error.
We can create a exception sub class by extending Exception class available in java
Yes You can. The features of such a class would be similar to what an Exception would have but not exactly as a predefined Java Exception. When you create a user defined exception you extend the java.lang.Exception class which in turn extends the java.lang.Throwable so indirectly you are extending the Throwable class while creating a user defined exception...
The Exception class has 4 constructors. They are: a. Exception() b. Exception(String arg) c. Exception(String arg, Throwable arg1) d. Exception(Throwable arg)
The class case exception is thrown when an object A of class type B is cast to a class type C where C is neither B nor its subclass.
There is no catch block that names either the class of exception that has been thrown or a class of exception that is a parent class of the one that has been thrown, then the exception is considered to be unhandled, in such condition the execution leaves the method directly as if no try has been executed
using throws class try, catch block we through the exception
If you mean Java's RuntimeException class, its parent class is java.lang.Exception
import java.lang.Exception, the Exception class.
Thorwable
Java source files have the .java extension, compiled Java class files have the .class extension.
None. Because an abstract class cannot be instantiated.
sql exception which provides information on database access errors where as sql warning provides inforamation on database access warnings.