ADVANCED TOPICS IN COMPILER DESIGN
CODE GENERATION FOR OBJECT ORIENTED LANGUAGES
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
.Which of the following is a super class of all exception classes?
|
Catchable
|
|
RuntimeExceptions
|
|
String
|
|
Throwable
|
Explanation:
Detailed explanation-1: -The Throwable class is the superclass of all errors and exceptions in the Java language.
Detailed explanation-2: -Throwable has two direct subclasses-Exception and Error. The Exception class is used for exception conditions that the application may need to handle. Examples of exceptions include IllegalArgumentException, ClassNotFoundException and NullPointerException .
Detailed explanation-3: -Checked Exception or Compile Time Exception. Error. Un-Checked Exception or Runtime Exception.
There is 1 question to complete.