Multiple choice

What does toString() method in java do?

  1. This method is used to convert the string values into integers.

  2. This method is used to get the string representation of the number values.

  3. This method is used to get the string values from the char array.

  4. This method is used to split the string.

  5. None of the above

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

This is a true statement.