Home » JAVA Programming » Exceptions » Question
  1. Which part of code gets executed whether exception is caught or not?
    1. throw
    2. try
    3. finally
    4. catch
    5. None of these
Correct Option: C

Finally block of the code gets executed regardless exception is caught or not. File close, database connection close, etc are usually done in finally.



Your comments will be displayed only after manual approval.