Menu
Question Index
...

What will be the output of the following program?

public class Lemon {

    public static void main(String[] args) {
        long l = 22;
        int e = l + 3;
        boolean m = l < e;
        float o = 12.5f;
        double n = o * 2;
        System.out.println(l + "e" + m + "o" + n);
    }
}


22etrueo25.0
2225true12.525.0
Some other output
Compilation Error

Doubts

Problems

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