1. Multiple Choice Circle the letter of the corect choice 2(a) Which of the foll
ID: 3706582 • Letter: 1
Question
1. Multiple Choice Circle the letter of the corect choice 2(a) Which of the following exceptions is/are throwable exceptions? A. FilcNot FoundExecption B. NullPointerException C. IndexOutOfBoundsException D. None of the above are throwable exceptions E. All of the above are throwable exceptions 2 (b) Which of the following exceptions is/are checked exceptions? A. FileNotFoundExeption B. NullPointer Exception C. IndexOutOfBoundsException D. None of the above are checked exccptions E. All of the above are checked exceptions 2) (c) What is the "highest superelas of all exception classes? A. Throwable B. Exception C. RuntimeException D. Error E. Object 2. Short Answer 4 (a) The method header for the addA1l method in a Set is public boolean addAll (Collection? extends E>c) What kind of objects can I put in a List that I want to pass to this method? 4 (b) Given the class header public class HashMapcK, V> create an instance of this class that could be used to map names to ages (assume name is a String and age is an int).
Explanation / Answer
If you post more than 1 question, as per chegg guidelines I have to solve only first question.
Ques 1. Answer : (E) All of the above are throwable Exceptions
We can throw each exception manually using the throw keyword.
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.