Question
Explain difference between Srting class and StringBuider class.
Answer :
Word Count : 326
______ ____ ___ _____ _______ ________ _____.
______ ______ _____ _______ __________ __________ ____ ________ _____ ______.
__________ _______ __________ ________ ________ _________ ____ ________ _________ _______.
______ __________ _______ _______ _______ _______ _______ ____ ___ _______ ______ _________.
____ ____ _____ _________ ____ __________ _______ ____ ____ _______.
________ ___ _________ ___ ____.
_________ _______ ___ ______ __________ _________ _________ ___ _________ _________.
_________ _________ ____ ______ ________.
__________ ________ _____ ____ ________ _________ ___ _______.
__________ __________ _____ ____ _______ _________ ______ _______ _____ ______ _________.
______ ___ ____ ______ _________ ______ ____ __________ ________ _________ ____ ____.
_________ __________ ________ ___ _________ _____ _________ _______.
_________ ____ ________ _________ ________ ____ ___ _______.
____ _____ _________ ________ _____ ______ _____ ___ ________ _____ ____ ___.
_________ ___ ________ _______ ___ ________ _____ __________ ______ ___ ________ ___.
______ ___ ________ ________ __________ ______ ___.
________ ________ ____ _____ __________.
_____ ______ _______ _______ ________ ________ _______.
___ ___ _______ ________ _____.
________ __________ _________ ___ _______ ________.
____ _________ _________ ______ ______.
__________ _________ _______ ______ ___ _________ _______ _____ ____ ________ __________ _________.
__________ ___ __________ _______ ____ _________ __________.
______ _________ _____ ___ ____ _____ _______ _________ ___ ________.
__________ __________ __________ _____ _________ ______ _______ _________ ______ _____ ______ ____.
____ ___ __________ ______ ______ ___ _____ _______.
___ _____ ________ ___ _____ ___ __________ __________ ____ _______ _______ ____.
____ ____ __________ _______ __________ __________ ____.
______ __________ ____ _________ ________ ______ _____ _________ ______ __________.
_________ ________ __________ ____ ____.
Skip in 10
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 performed on a
______ ______ _____ _______ __________ __________ ____ ________ _____ ______.
__________ _______ __________ ________ ________ _________ ____ ________ _________ _______.
______ __________ _______ _______ _______ _______ _______ ____ ___ _______ ______ _________.
____ ____ _____ _________ ____ __________ _______ ____ ____ _______.
________ ___ _________ ___ ____.
_________ _______ ___ ______ __________ _________ _________ ___ _________ _________.
_________ _________ ____ ______ ________.
__________ ________ _____ ____ ________ _________ ___ _______.
__________ __________ _____ ____ _______ _________ ______ _______ _____ ______ _________.
______ ___ ____ ______ _________ ______ ____ __________ ________ _________ ____ ____.
_________ __________ ________ ___ _________ _____ _________ _______.
_________ ____ ________ _________ ________ ____ ___ _______.
____ _____ _________ ________ _____ ______ _____ ___ ________ _____ ____ ___.
_________ ___ ________ _______ ___ ________ _____ __________ ______ ___ ________ ___.
______ ___ ________ ________ __________ ______ ___.
________ ________ ____ _____ __________.
_____ ______ _______ _______ ________ ________ _______.
___ ___ _______ ________ _____.
________ __________ _________ ___ _______ ________.
____ _________ _________ ______ ______.
__________ _________ _______ ______ ___ _________ _______ _____ ____ ________ __________ _________.
__________ ___ __________ _______ ____ _________ __________.
______ _________ _____ ___ ____ _____ _______ _________ ___ ________.
__________ __________ __________ _____ _________ ______ _______ _________ ______ _____ ______ ____.
____ ___ __________ ______ ______ ___ _____ _______.
___ _____ ________ ___ _____ ___ __________ __________ ____ _______ _______ ____.
____ ____ __________ _______ __________ __________ ____.
______ __________ ____ _________ ________ ______ _____ _________ ______ __________.
_________ ________ __________ ____ ____.
IGNOU ACADEMY
Your IGNOU journey, made easier.
- Solved Assignments
- Study Notes
- Guess Papers
- Question Papers
Continue Reading — It's Free
Sign in with Google to unlock more of this answer.
✓ Free access
✓ Unlock up to 60% of the answer
✓ No payment required
✓ Unlock up to 60% of the answer
✓ No payment required
Quick Google sign-in. No separate registration form.