Menu
Question Index
...

What will be the output of the following program?

public class Hex {
    public static void main(String args[]) {
        int flt = 190;
        System.out.println("Number value: " + flt);
        String st = Integer.toHexString(flt);
        System.out.print("Hex value: " + st);
    }
}


Number value: 190
Hex value: ae
Number value: 190
Hex value: be
Number value: 190
Hex value: ea
Number value: 190
Hex value: eb
Some other output
Compilation Error or Runtime Error

Doubts

Problems

Topic: Unknown

Read this topic
Take test on this topic

0
Wrong
Score more than 2 points

© meritcampus 2019

All Rights Reserved.

Open In App