Menu
Question Index
...

What will be the output of the following program?

public class Sketch {
    public static void main(String args[]) {
        int a = 0152;
        a *= --a / 2 * 2;
        System.out.println("a=" + a);
    }
}


a=11130
a=11024
Some other output
Compilation Error or Runtime Error

Doubts

Problems

Topic: Arithmetic Compound Assignment 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