Important Java Mcq 1

Which of the following is the correct statement to return java?

a. toUpperCase(“Java”)

b. “Java”.toUpperCase(“Java”)

c. “Java”.toUpperCase()

d. String.toUpperCase(“Java”)

Answer:

C. “Java”.toUpperCase()

Explanation:

“Java”.toUpperCase() is the correct statement used to return Java.

Related MCQs
Aniket Malik

Aniket Malik

CERTIFIED TUTOR/TRAINER WITH 300+ REVIEWS

Facing difficulty with

this concept?