Menu
Question Index
...

What will be the output of the following program?

public class FindOut {
    public static void main(String[] args) {
        System.out.print("Output is equals to ");
        System.out.print(12345 + 5432l + " ");
        System.out.print(01234 + 43210);
    }
}


Output is equals to 17777 44444
Output is equals to 17777 43878
Output is equals to 66666 44444
Output is equals to 66666 43878
Compilation Error or Runtime Error

Doubts

Problems

Topic: Java String Concatenation with Other Data Types

Read this topic
Take test on this topic

0
Wrong
Score more than 2 points

© meritcampus 2019

All Rights Reserved.

Open In App