A

Admin • 833K Points
Coach

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').
  • Correct Answer - Option(B)
  • Views: 27
  • Filed under category Java
  • Hashtags:

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.