Menu
Question Index
...

What will be the output of the following program?

public class Rules {
    public static void main(String[] args) {
    System.out.println(10 * 5 + 100 * (25 * 11) / (25 * 10) * 10 - 5 + 7 % 2);
    int zx = (10 * 5 + 100 * (25 * 11));
    int yz = ((25 * 10) * 10 - 5 + 7 % 2);
    System.out.println(zx / yz);
    }
}


1046
1046
1046
10
1146
1146
1146
11
Some other output
Compilation Error or Runtime Error

Doubts

Problems

Topic: Modulus Operator 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