#35 Mutable vs Immutable String in Java

  Рет қаралды 162,682

Telusko

Telusko

Күн бұрын

Пікірлер: 37
@SudipNeupane42
@SudipNeupane42 Жыл бұрын
hands down you're the best java teacher on youtube.RESPECT
@dineshsm3823
@dineshsm3823 2 жыл бұрын
Such a great lecture. One small mislead observed in the last min of the video is that you referred string buffer and string builder to immutable string. Actually its for mutable string.
@King-bj8km
@King-bj8km Жыл бұрын
this comment need to be pinned :)
@abhijithtm1318
@abhijithtm1318 Жыл бұрын
pin this sir
@jogiparthisaiganesh1806
@jogiparthisaiganesh1806 5 ай бұрын
Bro,he said correct only ,listen once again
@mounishmaram6005
@mounishmaram6005 5 ай бұрын
Yes, it's mistake
@narrativegatherer3128
@narrativegatherer3128 5 ай бұрын
6:15 listen hard niqqa​@@jogiparthisaiganesh1806
@krishnapatel-ys7nk
@krishnapatel-ys7nk Жыл бұрын
The way he is explaining everything in detail is ❤️...my mind is blessed with such an amazing amount of knowledge...thank you sir
@muralikrishna2607
@muralikrishna2607 Жыл бұрын
Great video sir...At the end by mistake you said that the string buffer and string builder classes can be used for creating Immutable string.
@ragibgulzar
@ragibgulzar 16 күн бұрын
This has to be the best explanation for this topic, Appreciate your teaching style 👏
@raman_reddy
@raman_reddy Жыл бұрын
5:14 All the objects in string pool area are implicit objects, which are maintained by JVM. So those are not eligible for garbage collection
@nihadkv2976
@nihadkv2976 Ай бұрын
Thats not correct. If there is no reference exists, it is eligible for garbage collection in string pool too.
@heycreatives
@heycreatives 2 жыл бұрын
Good series for making total java tutorial. it's very easy revise total java concepts.. Awesome Explanation Navin sir...
@AnuragRawat01
@AnuragRawat01 Жыл бұрын
Fantastic sirji ❤️
@vigneshk5193
@vigneshk5193 Жыл бұрын
Good teaching Sir. I'm very thankful for java course. It is very useful to me. And i get more interested to listen your class. And please continue teaching like this. 😊 My humble request to you that to teach Data science, Artificial intelligence courses
@HypRGK
@HypRGK Жыл бұрын
wow this was so easy to understand , thank you sir for such an easy explanation
@kamranalam2002
@kamranalam2002 Жыл бұрын
Hello. You literally cleared my confusion regarding the concepts of immutable and mutable strings. But after seeing the full video my only question is what will be case for "hello" that you printed with the name variable? Will the heap memory also create a new object for "hello"?
@Regr310
@Regr310 Жыл бұрын
great question, where is the replies 😅
@CoderboyAkshay
@CoderboyAkshay Жыл бұрын
@@Regr310 i think he didn't check comment section😄 just uplode videos
@anonymous-li9ts
@anonymous-li9ts Жыл бұрын
Yes, It should
@shindeprem228
@shindeprem228 6 ай бұрын
If u are talking abt this statement, System.out.println("hello"+name); Then the answer is - "No" , because we are just printing that "hello" it will not take any memory
@poojaladda6367
@poojaladda6367 5 ай бұрын
Beautiful explanation👏
@nishchaygupta9988
@nishchaygupta9988 Жыл бұрын
3:34 - Can we say that String Constant Pool is nothing but an implementation of Set which is of String type in the Heap memory ?
@NM_Krishna
@NM_Krishna Жыл бұрын
waaaoooooooo sir you are the best ever
@harishraj-zm5hh
@harishraj-zm5hh Жыл бұрын
String s1="Navin"; String s2="Navin"; s.o.p(s1==s2); this above example gives true as its output as u explained. but y we r getting false output with case of using new keyword for creating a string String s1=new String("Navin"); String s2=new String("Navin"); s.o.p(s1==s2); now the out put is false. pls sir explain this
@ritikyadav9378
@ritikyadav9378 11 ай бұрын
Using the new keyword, you can create multiple objects from the same character sequence. This is useful when you want to save time by creating multiple objects from the same data source. However, when using a string literal, you can only create one object. String literals are read-only memory locations, so they cannot be changed and can only be used to create a single object. This makes string literals less flexible than the new keyword.
@badruddindulvi4819
@badruddindulvi4819 6 ай бұрын
By using new keyword the string object would be created in different memory locations inside the heap eventhough if the content of the object are same. Hope you got it.
@RockyManna-ef4xl
@RockyManna-ef4xl 3 ай бұрын
you are god of java
@duastech1532
@duastech1532 Жыл бұрын
Underrated channel 😢
@gowrigandikota8521
@gowrigandikota8521 Жыл бұрын
Can mutable string be created with "new String()" ?
@puruagni1927
@puruagni1927 8 ай бұрын
Why are you not updating VS Code? Please update VS Code.
@gowthamchandran6213
@gowthamchandran6213 2 ай бұрын
why strings are immutable?
@yogithacirigiri4882
@yogithacirigiri4882 9 ай бұрын
how are you able to compile and run without typing
@sribalajihema
@sribalajihema 2 ай бұрын
by clicking arrow button
@-RATHNESH
@-RATHNESH Ай бұрын
string buffer and string buider are mutable 👍🏻
#36 StringBuffer and StringBuilder in Java
5:41
Telusko
Рет қаралды 238 М.
#34 What is String in Java
7:24
Telusko
Рет қаралды 168 М.
Мен атып көрмегенмін ! | Qalam | 5 серия
25:41
#26 Stack And Heap in Java
12:37
Telusko
Рет қаралды 308 М.
What is String Immutable || Why String Object Is Immutable In Java (Hindi)
17:36
Learn Java in 15 Minutes (seriously)
19:50
ForrestKnight
Рет қаралды 176 М.
Why String is Immutable | Java Tutorial
13:27
Naresh i Technologies
Рет қаралды 87 М.
#37 Static Variable in Java
7:06
Telusko
Рет қаралды 191 М.
#40 Encapsulation in Java
11:42
Telusko
Рет қаралды 222 М.
Java Strings are Immutable - Here's What That Actually Means
7:06
Coding with John
Рет қаралды 627 М.
#32 Array of Objects in Java
8:52
Telusko
Рет қаралды 173 М.
Functions vs Classes: When to Use Which and Why?
10:49
ArjanCodes
Рет қаралды 173 М.
Мен атып көрмегенмін ! | Qalam | 5 серия
25:41