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


c.

Computer Science & Information Technology

You might also like to view...

Programmer-defined exception classes typically should contain 3 constructors:

a) a default constructor, a constructor that receives a string for the error message and a constructor that receives an Exception argument of the inner exception object b) a default constructor, a constructor that receives a string and a constructor that receives both a string and an exception c) a constructor that receives a string, a constructor that receives an exception and a constructor that receives both d) a default constructor, a constructor that receives a string and a constructor that receives a number indicating the line number where the exception occurred

Computer Science & Information Technology

Match each of the following file extensions to their meanings:

I. mp4 II. swf III. bmp IV. mp3 V. mid A. Consists of rows and columns of dots B. Can be used to deliver video over the Internet. C. Commonly used with video cameras D. Compressed audio file E. Used to interchange of musical information between musical instruments and computers.

Computer Science & Information Technology

Which of the following is not a type of table formatting?

A. table borders B. table frames C. vertical alignment D. cell margins

Computer Science & Information Technology

?Among the symbols in the accompanying figure, a _____ is a path for data to move from one part of the information system to another.

A. ?data store B. ?data flow C. ?process D. ?gray hole

Computer Science & Information Technology