what do you mean by strings are immutable in java ? Java interview shorts -28 #javainterview

preview_player
Показать описание
In this video, we will understand what is java string's immutable behaviour and What do we mean by String are immutable in java? It's a popular java interview question which checks the knowledge on java string's fundamental.
Рекомендации по теме
Комментарии
Автор

1) Security purpose hackers cannot change its value. 2) Transforming secured data across the network. 3) Saves memory space for similar values instead of creating new references. 4) keeping passwords. 5) Thread Safety. 6) Caching data.

SantoshGupta-jlcj
Автор

Security, Login, Performance, Threads ....

RefaatIbrahimDataSoft
Автор

Thread safety, security, Caching, performance

AnishKumar-cbtn
Автор

Aa String is immutable we use in hashmap to store object address based on which that perticular object stores in perticular linklist

avishekdutta
Автор

(xvi) Assertion (A): String objects are immutable.
Reason (R): Any character cannot be inserted or deleted from an existing String object.

(a) Assertion and Reason both are correct.
(b) Assertion is true and Reason is false.
(c) Assertion is false and Reason is true.
(d) Assertion and Reason both are false.


Sir plz tell the answer I beg

qockgamershorts
Автор

Formost is security because once created it won't change, next caching as string won't change it would be there in cache same value in turn it improves performance

Sumatavlogs
Автор

Plz make experience person java questions shorts

PricesofMomdad
Автор

Since String objects are immutable, the same object can be reused

jayakumarsivasankar
Автор

What happens when you use Reflection and change the accessor of the char array from private to public and then modify that char array? Then you get a mutatable string.

franchello
Автор

What about this str="Kevin" str="kevinpeterson"; plz can you explain me this

zakir
join shbcf.ru