Mastering Java: The Ultimate Quiz for 'Thinking in Java' 2026 - Free Java Programming Practice Questions and Study Guide

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
Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy