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);
        int zx = (10 * 5 + 20);
        int yz = (zx - 5);
        System.out.println(yz);
    }
}


50
65
50
245
Some other output
Compilation Error or Runtime Error

Doubts

Problems

Topic: Basic Arithmetic Operators 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