1

Given the code String s = new String("abc"); Which of the following call is not valid?

Correct Answer: s.replace('a', 'A').

Make the most of this question

This page focuses on one JAVA MCQs question from Programming. After checking the answer, return to the topic list to practice more or run a timed set.

JAVA MCQs MCQ: Given the code String s = new String("abc"); Which of the following call is not valid? | Extra Education