Mastering Java 2025 – 400 Free Practice Questions to Pass the 'Thinking in Java' Exam

Question: 1 / 510

What method produces a new String object with all letters changed to lowercase?

tolowerCase()

toLowerCase()

The method toLowerCase() is the only built-in method in Java that changes all letters in a String to lowercase. Option A, tolowerCase(), is incorrect because it includes a typo and is not a valid method name. Option C, lower(), is incorrect because it is not a built-in method in Java. Option D, convertToLower(), is incorrect because it is not a valid method name in Java and there is no built-in method with this name. Therefore, the correct answer is B, toLowerCase().

Get further explanation with Examzify DeepDiveBeta

lower()

convertToLower()

Next Question

Report this question

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy