Menu
Question Index
...

What will be the output of the following program?

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


Float value: Computer
After Conversion: Computer
Float value:
After Conversion: Computer
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