Is the Exception class a subclass of the Error class? Explain.

What will be an ideal response?


No the Exception class is not a subclass of the Error class, because there is no is-a relationship between
them. They are actually siblings in an inheritance hierarchy. They are both subclasses of the Throwable class.

Computer Science & Information Technology

You might also like to view...

Which of the following formats is set by default in the ostream flags? There are flags for each of these formats. In the explanation, you are to give the argument you would give setf to get the format. For example, for uppercase, you would answer, ios::uppercase.

a) Fixed point b) Scientific notation c) Right justification in the field d) Decimal number base e) Show decimal point.

Computer Science & Information Technology

Which of the following statements is true?

a. Interpreted programs run faster than compiled programs. b. Compilers translate high-level language programs into machine language programs. c. Interpreter programs typically use machine language as input. d. None of the above.

Computer Science & Information Technology

Spam is email generated by marketing firms using e-mail addresses from mailing lists, membership applications, and Web sites.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

________ threading is when many similar or identical tasks are spread across multiple processors.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology