Multiple Choice
Suppose a try block needs to be followed by two catch blocks,each catching a different exception.Which exception should be caught first?
A) The exception that is more likely to occur
B) The exception that is more general
C) The exception that is more specific
D) It does not matter in what order exceptions are caught
Correct Answer:

Verified
Correct Answer:
Verified
Q18: How many constructors can a class have?<br>A)Exactly
Q19: All Java programs must define at least
Q20: Suppose s1 is a String variable.We want
Q21: Suppose temp is an array of 12
Q22: The following code containing a loop attempts
Q24: What is the value of sum after
Q25: A comment in Java that begins with
Q26: How is the finally keyword used in
Q27: Consider the following code that appears in
Q28: A default constructor requires at least one