Question OOP-EXC-0013
MediumWhat does try-with-resources do in Java?
- A.
Allocates more memory
- B.
Automatically closes resources such as files when the try block ends
- C.
Retries the block on failure
- D.
Catches every exception silently
Sign up free to see the answer and a step-by-step explanation.