Menu
Question Index
...

What will be the output of the following program?

public class IntConversion {
    public static void main(String args[]) {
        Float f1 = new Float(25.0f);
        int k = f1.intValue();
        Byte b = (byte) f1.intValue();
        System.out.print(k + " " + b);
    }
}


25 25.0
25 25
25 25.0f
Compilation Error or Runtime Error

Doubts

Problems

Topic: Java FileWriter

Read this topic
Take test on this topic

0
Wrong
Score more than 2 points

© meritcampus 2019

All Rights Reserved.

Open In App