Social Sciences, asked by manu2607, 11 months ago

Which of the following statements is/are not true?
A try block has multiple catch blocks, then those exception handlers can be in any order
Finally block will get executed whether or not an exception occurs.
For each try block there can be zero or more catch blocks but only one finally block
A try block must be followed only by at least one finally block​

Answers

Answered by Rusheyandhar17
51

Answer:

A try block has multiple catch blocks, then those exception handlers can be in any order.

A try block must be followed only by at least one finally block​

Explanation:

These 2 options are not true.

Answered by mindfulmaisel
6

statement 1 and statement 3 are false

Explanation:

  • block is always executed after tryblock, no matter exception is found or not.
  • catch block is executed only when exception is found.
  • You start with catching specific exceptions and then in the last block you may catch a basebase Exception .
  • Only one of the catch block will handle your exception. You can have try block without a catch block.
  • Finally block will get executed whether or not an exception occurs
  • For each try block there can be zero or more catch blocks but only one finally block
Similar questions