Menu
Question Index
...

What will be the output of the following program?

public class LongDivision {
    private static final long VALUE1 = 24 * 60 * 60 * 1000;
    private static final long VALUE2 = 24 * 60 * 60 * 1000 * 1000;
    public static void main(String[] args) {
        System.out.print(VALUE2 / VALUE1);
    }
}


5
1000
5000
Some other output
Compilation Error or Runtime Error

Doubts

Problems

Topic: Static Keyword In Java

Read this topic
Take test on this topic

0
Wrong
Score more than 2 points

© meritcampus 2019

All Rights Reserved.

Open In App