Final answer:
The method Integer.parseInt("1101", 2) converts the binary string "1101" to its decimal equivalent, which is 13. The radix 2 indicates that the number is in binary format.
Step-by-step explanation:
The Integer.parseInt method in Java is used to convert Strings to integers. When you see a call like Integer.parseInt("1101", 2), the first argument "1101" is the string representation of the number, and the second argument 2 is the radix (base) in which the number is represented. In this case, 2 indicates that the number is in base 2, or binary. The binary number 1101 represents the decimal number 13.
To determine the decimal value, you can calculate 23 (for the leftmost '1') + 22 (for the '1' after the first one) + 20 (for the rightmost '1') which equals 8 + 4 + 1 = 13.
Therefore, the correct output of Integer.parseInt("1101", 2) is B. 13.