Logo 
Search:

C++ Programming FAQ

Submit Interview FAQ
Home » Interview FAQ » C++ ProgrammingRSS Feeds

Which statement(s) is NOT true about catch (…) statement? - Select option

  Shared By: Rae Fischer    Date: Dec 08    Category: C++ Programming    Views: 1892

Answer:

I. All the throws are not caught by catch (…) statement
II. Catch (…) statement should always be placed last in the list of handlers. Placing it before other catch blocks would prevent those blocks from catching exceptions
III. All the throws are caught by catch (…) statement
IV. Catch (…) statement should always be placed first in the list of handlers. Placing it before other catch blocks would prevent those blocks from catching exceptions

Options

a) I only
b) Both II and III
b) Both III and IV
c) Both I and IV

Answer : d) Both I and IV

Share: 
 



Your Comment
  • Comment should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].


Tagged: