Question
Explain difference between Srting class and StringBuider class.
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:
- 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.
- Memory Overhead: Whenever a modification operation is ________ ________ ______ ____ ______ ___ _________ ____ ___ ____ ________ ______.
________ _________ ________ ___ ______ ______ ___ _____ ______ _________ __________ ________.
__________ ____ _________ __________ _____ _______ _________.
________ ________ ________ _______ ___ ____ ___.
______ ________ __________ ____ __________ ________ ________ _____ ______ ____.
________ ________ ___ __________ _________ _____ ___.
_______ _______ ______ ____ _________ ______ _______ ________ ____ ____.
____ ________ ______ ________ ____ ________ ______ ___ ______ __________ ________ ___.
_____ ____ ____ _______ ________ _____ ________ ____ ____ _______.
_________ _________ __________ _______ _______ _________ _______ ____.
________ __________ _____ ____ ____ _________ ___ ___.
______ _________ ________ ___ ______.
____ ________ ___ _______ ____ ___ ___ _________.
____ __________ ____ _____ ________ __________ ______ ________ _________ __________ ___.
__________ ___ __________ __________ _______ _________ ________ _______.
_____ _________ _____ ___ ________ _________ ___ ________ ____.
___ _______ _________ _____ _______ ____ _____ ________ __________.
_______ ___ _______ _________ _________ _____.
__________ ____ __________ _____ ___ ______ ________ _______ ___.
____ __________ ________ _________ ______ _________ __________ _______ ___ ______ ___ ______.
____ ______ ___ ____ ___ ____ _____.
____ ______ __________ _________ ___ _____ ___ _______ ______ _________ __________.
______ _______ ___ ___ ________ ________ ___.
____ ______ ________ ________ ___ ____.
_________ ______ ____ ___ ____ _____ _________ _________ ____ _______.
________ _________ _______ _________ ______ _______ ________ ________ ____ ________ __________ _________.
___ _____ ____ __________ ________ _________ __________ ________ _________.
__________ ________ _____ _________ _________ ______.
______ _________ _______ _______ _____ ________ ____ ____ _________ _________.
____ ____ ___.
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★★★