Home / Report Question

Q. What does the following code do? try { // code } catch (Exception e) {} finally {}
  • A. Only executes if exception occurs
  • B. Executes regardless of exception
  • C. Only runs finally block
  • D. Throws compile error