πŸ“Š JAVA
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').
πŸ’¬ Discuss
βœ… Correct Answer: (B) s.replace('a', 'A').

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
124
Total Visits
πŸ“½οΈ
2 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
93%
Success Rate