Home » JAVA Programming » Object & Classes » Question
  1. What is the output of this program?
    public class binary_Example
    {
    public static void main(String args[])
    {
    int n = 16;
    System.out.print(Integer.toBinaryString(n));
    }
    }
    1. 10000
    2. 00001
    3. 00100
    4. 01000
    5. 1000
Correct Option: A

16 = 10000



Your comments will be displayed only after manual approval.