Menu
Question Index
...

What will be the output of the following program?

public class Reverse {
    public static void main(String[] args) {
        int i = 10;
        Integer data = new Integer(i);
        System.out.println(Integer.bitCount(i));
        System.out.println(Integer.reverse(i));
    }
}


2
01
2
1342177280
Compilation Error
Runtime Error

Doubts

Problems

Topic: Converting Numbers to and from Strings In Java

Read this topic
Take test on this topic

0
Wrong
Score more than 2 points

© meritcampus 2019

All Rights Reserved.

Open In App