Question

 Explain difference between Srting class and StringBuider class.

27 Apr 2023
Answer :
Word Count : 326

The main difference between the String class and the StringBuilder class in Java lies in their mutability and performance characteristics.

String Class:

  1. Immutable: The String class in Java is immutable, meaning that once a String object is created, its value cannot be changed. Any operation that seems to modify a String actually creates a new String object.
  2. Memory Overhead: Whenever a modification operation is performed on a
______ ____ ___ _____ _______ ________ _____.
______ ______ _____ _______ __________ __________ ____ ________ _____ ______.
__________ _______ __________ ________ ________ _________ ____ ________ _________ _______.
______ __________ _______ _______ _______ _______ _______ ____ ___ _______ ______ _________.
____ ____ _____ _________ ____ __________ _______ ____ ____ _______.
________ ___ _________ ___ ____.
_________ _______ ___ ______ __________ _________ _________ ___ _________ _________.
_________ _________ ____ ______ ________.
__________ ________ _____ ____ ________ _________ ___ _______.
__________ __________ _____ ____ _______ _________ ______ _______ _____ ______ _________.
______ ___ ____ ______ _________ ______ ____ __________ ________ _________ ____ ____.
_________ __________ ________ ___ _________ _____ _________ _______.
_________ ____ ________ _________ ________ ____ ___ _______.
____ _____ _________ ________ _____ ______ _____ ___ ________ _____ ____ ___.
_________ ___ ________ _______ ___ ________ _____ __________ ______ ___ ________ ___.
______ ___ ________ ________ __________ ______ ___.
________ ________ ____ _____ __________.
_____ ______ _______ _______ ________ ________ _______.
___ ___ _______ ________ _____.
________ __________ _________ ___ _______ ________.
____ _________ _________ ______ ______.
__________ _________ _______ ______ ___ _________ _______ _____ ____ ________ __________ _________.
__________ ___ __________ _______ ____ _________ __________.
______ _________ _____ ___ ____ _____ _______ _________ ___ ________.
__________ __________ __________ _____ _________ ______ _______ _________ ______ _____ ______ ____.
____ ___ __________ ______ ______ ___ _____ _______.
___ _____ ________ ___ _____ ___ __________ __________ ____ _______ _______ ____.
____ ____ __________ _______ __________ __________ ____.
______ __________ ____ _________ ________ ______ _____ _________ ______ __________.
_________ ________ __________ ____ ____.
IGNOU ACADEMY
Your IGNOU journey, made easier.
  • Solved Assignments
  • Study Notes
  • Guess Papers
  • Question Papers
Skip in 10
Top
📞
Call Support Instant phone assistance IGNOU MCS 206 2022 2023 -  Explain difference between Srting class and StringBuider class. | IGNOU Academy
→
🟢
WhatsApp Chat Fast live messaging
→
Email Us Business enquiries & support
→