Menu
Question Index
...

What will be the output of the following program

public class Time {
    int a = 50;
    int b = 10;
    public static void main(String args[]) {
        a += b--;
        System.out.println(a);
    }
}


60
50
59
49
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