What is meant by string is immutable? | Why string is immutable Explain with the help of example? ✅

preview_player
Показать описание
What is meant by string is immutable?
Why string is immutable or final in Java Explain your answer with the help of example?
Is string mutable or immutable in Java?
Why is immutability important in Java?

In This video we are going to see what is string immutability concept and why string is immutable in java with example. Also We are going to see how hashcode method work internally. How the hashcode will calculate ? With internal implementation and code .

Why String is Immutable in java ?
1. Because of String Constant Pool Implementation
2. Hashcode Caching
3. Security
4. Thread saftly

Some of our Videos related to String you must watch

String Constant Pool Full Explanation with Example :

What is String immutability ?
Why String is immutable in java ?
How hashcode will calculate ?
Hashcode method internal implementation with source code
What is advantage we are getting by using string as a key in HashMap ?
Mostly asked interview question

#whatisstring #sjprogrammingsolutions #stringimmutability #stringinterviewquestions #string #javainterviewpreparation
Рекомендации по теме