Menu
Question Index
...

What will be the output of the following program?

class AddIntegerGroup
{
    public static void main(String s[])
    {
        byte b = 13;
        short s = 0313;
        int i = 230313;
        long l = b + s + i;

        System.out.println("l = " + l);
    }
}


l = 673313
l = 230639
l = 230529
Compilation Error

Doubts

Problems

Topic: Type Conversion 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