Examveda
Examveda

If two types of errors may be thrown, you should write _______

A. no catch blocks

B. one catch block with two arguments

C. two catch block-one with an argument, and one without

D. two catch blocks with one argument each

Answer: Option D


Join The Discussion

Related Questions on Object Oriented Programming Using C Plus Plus

A default catch block catches

A. all thrown objects

B. no thrown objects

C. any thrown object that has not been caught by an earlier catch block

D. all thrown objects that have been caught by an earlier catch block