0

WHAT IS THE ERROR IN THE PROGRAM?

public class LongDivision { public static void main(String[] args) { final int MICROS_PER_DAY=24*60*60*1000*1000; final int MILLS_PER_DAY=24*60*60*1000; System.out.println(MICROS_PER_DAY/MILLS_PER_DAY); } }

2nd Jan 2018, 8:49 AM
Akshaya
Akshaya  - avatar
4 Réponses
+ 2
It works😕
2nd Jan 2018, 9:12 AM
Sad
Sad - avatar
+ 2
I don't get an error; I just get a completely confusing output of 5.
2nd Jan 2018, 9:13 AM
blackcat1111
blackcat1111 - avatar
+ 2
I got the answer
2nd Jan 2018, 2:00 PM
Akshaya
Akshaya  - avatar
+ 1
You can't do division with constants (aka final variables) :)
2nd Jan 2018, 2:20 PM
Leander
Leander - avatar