Strings are Immutable in Java

preview_player
Показать описание
Java Programming: Strings are Immutable in Java Programming
Topics discussed:
1. Immutable Objects in Java.
2. Strings are immutable in Java.
3. Using new with Strings.

Music:
Axol x Alex Skrindo - You [NCS Release]

#JavaByNeso #JavaProgramming #StringsAreImmutable
Рекомендации по теме
Комментарии
Автор

Awesome!!! Finally, someone explained simply what Garbage really is ))) Thank you

Ceyhus
Автор

Thank you for clarifying this.
I guess I misunderstood you on the last couple of videos and rush to conclusions. My bad.

justpaulo
Автор

Enlightening!

Thank you for such an easy to follow explanation.

advitiayanand
Автор

03:17 We want use «new» for different String variables that point different strings with the same text.

lamaspacos
Автор

Btw your explanation is too good.
Thanks for giving such an adorble content.

DeepakKumar-dwre
Автор

thank you for this resource you created, its self explanatory.

chukwukennedy
Автор

Sir please make a playlist on servlet and jsp

codingwithjava
Автор

GC is not applicable for string constant pool

AbhishekKumar-llrr
Автор

Hey sir, String and constant are similar right, they cannot be change

paia
Автор

Strings are immutable its value cannot changed but how it changed when we concatenate it with other string pls explain with reference address box

zqpegwf
Автор

Str1='val';
Str='val2';

What happened when same name of string object have different value explain with reference diagram(like 3.58 th minute in this video)

zqpegwf
Автор

It's clear, and how about prinitives data type ? Are Java primitives immutable?

brunomiguel
Автор

you said strings can be collected by GC but its not the case when i searched on internet it says jvm does not allow GC to run in strings pool, can yo elaborate on this?

rizwansayyed
Автор

I think old value is not removed by Java Garbage Collector in the String Literal.

aakashpoly
Автор

String is stored in String Constant Pool and java garbage collector can not remove the value stored in String Constant Pool

royankit