Multiple choice

To convert all the characters in a input string from lowercase to uppercase, ____________ method is used in Java.

  1. toUpperCase()

  2. setLength()

  3. toLowerCase()

  4. ensureCapacity()

  5. capacity()

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

This method is used in Java to convert all the characters in a input string from lowercase to uppercase.