LogiQuest
Back to Exceptions
2

What is the output of the following program?

class Main {
    static int f() {
        try { return 1; } finally { System.out.print("F"); }
    }
    public static void main(String[] args) { System.out.println(f()); }
}
Medium

Discussion (0)

  • No discussion yet. Ask a doubt or share a shortcut.

Log in to join the discussion.