Q.

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

A. s.trim().
B. s.replace('a', 'A').
C. s.substring (3).
D. s.setCharAt (1,'A').
Answer» B. s.replace('a', 'A').
1.4k
0
Do you find this helpful?
13

View all MCQs in

Java Programming

Discussion

No comments yet