Q. What is the purpose of the toLowerCase() method of a String object in Java?

  • (A) To convert the string to uppercase.
  • (B) To convert the string to lowercase.
  • (C) To check if the string is empty.
  • (D) To reverse the string.
πŸ’¬ Discuss
βœ… Correct Answer: (B) To convert the string to lowercase.

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
104
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Ritu Singhal
Publisher
πŸ“ˆ
98%
Success Rate