Menu
Question Index
...

What will be the output of the following program?

public class String {
    public static void main(String args[]) {
        Integer it = new Integer("123");
        System.out.println("Integer value: " + it);
        String str = it.toString();
        System.out.print("After Conversion: " + str);
    }
}


Integer value: 123
After Conversion: 123
Integer value: 123
After Conversion:
Some other output
Compilation Error or Runtime Error

Doubts

Problems

Topic: Java Double Class And Java Float Class

Read this topic
Take test on this topic

0
Wrong
Score more than 2 points

© meritcampus 2019

All Rights Reserved.

Open In App