QuestionQ6
VerifiedSecure Coding Practices for Error HandlingJames is a Java developer working at INFR INC. He has written Java code that opens a file, reads it line by line, and displays its contents in the text editor. He wants to ensure that any unhandled exception raised by the code automatically closes the opened file stream. Which exception-handling block should he use for this purpose?
Community Discussion