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

πŸ‘οΈ
116
Total Visits
πŸ“½οΈ
2 y ago
Published
πŸŽ–οΈ
Ritu Singhal
Publisher
πŸ“ˆ
81%
Success Rate