LogiQuest
Back to Declarations and Access Control
19

What is the output of the following program?

public class Main {
    static final int MAX;
    static { MAX = 50; }
    public static void main(String[] args) {
        System.out.println(MAX * 2);
    }
}
Medium

Discussion (0)

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

Log in to join the discussion.