Multiple choice

Which of the following methods in Integer class returns a string that contains the decimal equivalent of the invoking object?

  1. toString()

  2. toBinaryString()

  3. shortValue()

  4. parseInt()

  5. hashCode()

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

This method in Integer class returns a string that contains the decimal equivalent of the invoking object.