Question

    Which statement is true about nested try-catch

    blocks?
    A The inner catch block must catch the exception before the outer catch block. Correct Answer Incorrect Answer
    B The outer catch block must catch the exception before the inner catch block. Correct Answer Incorrect Answer
    C The order of catch blocks does not matter. Correct Answer Incorrect Answer
    D Only one catch block can handle exceptions in a nested try-catch structure. Correct Answer Incorrect Answer

    Solution

    The order of catch blocks does not matter.

    Practice Next

    Relevant for Exams: