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 ___ ____ ____ _____ ________ __________ _________ _________ _________ __________.
    ____ _______ _____ _______ ________ ____.
    _______ _____ _________ ______ ________.
    ________ ________ ____ __________ ____ _____ ___ ___ ______ ___.
    __________ _____ _____ _____ ___ ________ _______ _____ ___ __________ ________.
    ___ ____ ____ ___ ________ _______ ___.
    _____ _____ __________ _________ _____ ______ _____ _________.
    _________ _____ ______ ______ _______.
    _______ _______ ____ __________ _____ ___ ______.
    _______ _____ ___ ___ ________ _____ _______ _________ _________ _______ _________.
    _____ ______ ________ _____ ________ _____ ________ ________ ___.
    ______ _______ ___ _______ _________ __________ ________.
    ___ ___ _____ __________ ______ ________ _________ ___ _______ ___ _____ ___.
    __________ ____ ________ ______ ________ __________ ________.
    ______ ____ __________ _________ ____ _____ _____ ____ ___.
    __________ _______ ___ ______ ________ _______ ___ _________.
    ______ ______ ___ ____ __________ _____ ____ ________ __________ __________ ________ ___.
    ________ _______ __________ ___ ____ _____.
    _______ __________ _____ ______ ________ _____ ____ ___ _________ _____ _______.
    ____ _____ ________ _______ __________ _______ ________ ________ _______ _______.
    ____ ______ ____ ____ _____.
    ________ ____ ___ ________ __________ ______.
    _______ _____ ___ ________ ____ _________ ________.
    ____ _____ ______ ______ __________ _________ ___ ____ ________ _____.
    _________ ___ ______ ___ ____.
    _______ ______ _______ ___ ________ ______ _________ _________ ______.
    ______ __________ ____ __________ _______ _______ ________ ___ _____ _____ ____.
    ______ __________ _______ _______ _____.
    ___ _______ ________ ______ _________ _________ _____ ____.
    _____ __________ ________ _______ ______ ___ ____ __________.
    _______ _______ ________ ______ _____.
    ____ _____ ____ ____ ____ _________ _______ ______.
    _____ ____ ___ ___ ____ ________ ____ _____ ________ _____.
    ________ ________ ____ ______.
    Get Full Answer on WhatsApp
IGNOU NEWS
Assignment Submission Last Date Extended Till 30 June 2026 Click Here★★★IGNOU June 2026 TEE Date Sheet Released Click Here★★★
Top
📞
Call Support Instant phone assistance  Explain difference between Srting class and StringBuider class.
🟢
WhatsApp Chat Fast live messaging
Email Us Business enquiries & support