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

In what order are resources closed?

try (Res a = new Res("A"); Res b = new Res("B")) { System.out.println("body"); } // Res.close() prints close(name)