Skip to main content
Journey Uncommon Logo
JourneyUncommon
mediumJavatry-with-resourcesSingle-choice MCQ

Which resource form is legal in a try-with-resources header in Java 9+?

Connection conn = openConnection(); // an effectively final, already-declared variable try (???) { use(conn); }