Is string mutable in Java?

14. Is string mutable in Java?

  1. Yes
  2. No

Answer: B) No

Explanation:

String in Java is immutable i.e., once defined the value cannot be changed.

Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.