Question: JAVA questions: If the code in a method can potentially throw a checked exception, then that method must: a.)handle the exception b.)have a throws clause
JAVA questions:
If the code in a method can potentially throw a checked exception, then that method must:
| a.)handle the exception | ||
| b.)have a throws clause listed in the method header | ||
| c.)neither handle the exception nor have a throws clause listed in the method header | ||
| d.)either handle the exception or have a throws clause listed in the method header |
Given the following constructor code, which of the statements are TRUE?

| a.)There is an error: a throws clause should be added to the constructor header.
d.)All of these | ||
public Book (String ISENOfBook, double priceofBook, int numberorderedOfBook) if '' (ISBNOfBook '') == throw new BlankISBN) if (priceofBook
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
