filmov
tv
Why String Is Immutable In Java | String Immutable Concept In Java | String Concept In Java

Показать описание
String In Java | String Advanced Concepts | What Is Heap Memory And String Constant Pool (SCP)
follow me on:
In This video, we will discuss why string is immutable
Immutable means which can't be changed, In the same way in java when we create an object of string class we can't change the content of the object even if we perform concat operation on the string reference variable.
When we use any string reference variable we perform concat operation we actually create a new object at run time and all these objects that are created at run time will be in heap memory.
But still, the reference variable that was created earlier is pointing to the previous object and the new object is not having any reference,
so even if we perform any kind of operation in string object it will create a new object at runtime. If we use the same reference variable still the object remains the same unchanged.
follow me on:
In This video, we will discuss why string is immutable
Immutable means which can't be changed, In the same way in java when we create an object of string class we can't change the content of the object even if we perform concat operation on the string reference variable.
When we use any string reference variable we perform concat operation we actually create a new object at run time and all these objects that are created at run time will be in heap memory.
But still, the reference variable that was created earlier is pointing to the previous object and the new object is not having any reference,
so even if we perform any kind of operation in string object it will create a new object at runtime. If we use the same reference variable still the object remains the same unchanged.
Java Strings are Immutable - Here's What That Actually Means
#35 Mutable vs Immutable String in Java
9.9 String is Immutable
Why String Is Immutable In Java | String Immutable Concept In Java | String Concept In Java
Strings are Immutable in Java
String Immutable In Java Interview Question
Why String is Immutable | Java Tutorial
Why string is immutable in java || The 4 reasons you must know || part 1
Why is the String Immutable Explain?
Why Strings are immutable in JAVA? | Core JAVA| most asked Interview Questions| Freshers Experienced
A Python String is Immutable
Why String is Immutable and Final in Java?
Why Strings are Immutable In Java - Animated way
String is Immutable in Java
What is String Immutable || Why String Object Is Immutable In Java (Hindi)
Java Strings are Immutable - What That Actually Means?
Strings are Immutable | C# Interview Questions | Csharp Interview Questions
Java Tutorials: Why String is Immutable in Java
Why Are Strings Immutable In Java? Know The Actual Reason!
Why String is immutable - in details - Java
Why Strings are immutable in Java (Core Java Interview Question #307)
What is String? full Explanation | Why String is Immutable in Java
Why string is immutable in java interview questions in english | Explained with example - Part 1
Why Strings are Immutable in java | String Immutable Interview Questions | Java Tutorial in Hindi
Комментарии