Question 1
A method must declare to throw ________.
◦ RuntimeException
◦ Error
◦ unchecked exceptions
◦ checked exceptions
Question 2
Which of the following statements are true?
◦ To throw an exception, use the key word throw.
◦ If a checked exception occurs in a method, it must be either caught or declared to be thrown from the method.
◦ A method may declare to throw multiple exceptions.
◦ You use the keyword throws to declare exceptions in the method heading.