• 2022-06-07
    Which of the following statements is true? ( )
    A: The catch block contains the code that might throw an exception.
    B: The try block contains the code that handles the exception if one occurs.
    C: You can have many catch blocks to handle different types of exceptions.
    D: When a try block terminates, any variables declared in the try block are preserved.
  • 举一反三