What is the output of Integer.parseInt("10", 2)?

What is the output of Integer.parseInt("10", 2)?


A. 1;
B. 2;
C. 10;
D. Invalid statement;

The correct answer is B

Explanation: Based on 2, 10 is 2 in decimal.


Java

Learn More Multiple Choice Question :