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

What does this code print?

static int f() {\n try { return 1; } finally { return 2; }\n}\nSystem.out.println(f());