LogiQuest
Back to Language Fundamentals
7

What is the output of the following program?

public class Main {
    public static void main(String[] args) {
        long big = Integer.MAX_VALUE;
        big++;
        int small = Integer.MAX_VALUE;
        small++;
        System.out.println(big + " " + small);
    }
}
Hard

Discussion (0)

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

Log in to join the discussion.