Menu
Question Index
...

What will be the output of the following program?

class Question
{
    public static void main(String s[])
    {
        int i = 7806;
        int j = 0760;

        int total = i + j;

        System.out.println("Total is " + total);
    }
}


Compilation Errors
Total is 8566
Total is 7806
Total is 8302

Doubts

Problems

Topic: Integer Literals 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