Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

For each of the following statements about exceptions, indicate whether it is: t

ID: 3724248 • Letter: F

Question

For each of the following statements about exceptions, indicate whether it is: true for check exceptions only (C), true for unchecked exceptions only (U), true for both checked and unchecked exceptions (B), or true for neither checked nor unchecked exceptions (N) 8. It is either handled by a given method or it propagates to the caller of that method. If a method does not handle an exception, it must report that it throws that exception. An unhandled exception propagates through the call stack. It is a RuntimeException. As an exception propagates, it creates more exceptions that must be individually handled. 9. What is the default layout manager for a JFrame? For a JPanel?

Explanation / Answer

Answer:-

8)U(unchecked exception),beacuse exception propogation happens only in case of unchecked exception.

C(checked exception),because a check exception either handles the exception or it specify the exception using throws keyword.

U(unchecked exception).the uncaught exception are propogated to the call stack until the stack becomes empty.these kind of exception are possible only in unchecked exception.

U(unchecked exception),it is a runtime exception while checked exception is compile time exception.

U(unchecked exception),beacuse propogation is allowed only in unchecked exception.

9)the default layout of JFrame is BorderLayout(the AWT and swing classes provides layout managers for general use).The BorderLayout is used to arrange the components in five regions: north, south, east, west and center. Each region (area) may contain one component only.

the default layout of JPanel is FlowLayout manager.It provides a very simple layout manager which is used by JPanel objects.

12)the three primary members of a class are:

a)Fields(variable)

b)methods

c)constructors.