Menu
Question Index
...

What will be the output of the following program?

public class Good {
    public static void main(String args[]) {
        int bp = 175;
        String s = Integer.toHexString(bp);
        String str = toHexString(bp);
        System.out.println(s);
        System.out.print(str);
    }
    static public String toHexString(int bp) {
        return "good";
    }
}


175
good
af
good
good
175
good
good
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