Which feature helps close external resources reliably?
Practice this question from Quiz: Memory Management, with options and an explanation.
Question
Which feature helps close external resources reliably?
Option A — Correct answer
try-with-resources
try-with-resources closes AutoCloseable resources automatically.
Option B
switch only
Option C
Math.random
Option D
String interning only