#string

Publicado el: 04 febrero 2022
en el canal de: SJ Programming Solutions
1,320
27

#stringconstantpool #sjprogrammingsolutions #interviewquestionsonstringinjava

What is string constant pool and heap in Java?
What is the advantage of string constant pool in Java?
Where is the string pool in Java?
Is string constant pool part of heap?
Does new String create object in String pool?

Hi All,
In todays video we are going to disscuss about the String Object creation behind the scene. What will happen when we create the string using new keyword and using litterals . How many Objects will get created and where exactlt in memory those objects will strored.

String str1=new String("hello");

in this case 2 objects will create one inside String Constant Pool and one inside Heap memory area.

String str1="hello";

in this case only one object will crate inside String constant pool.

Thank you for watching !

How the string object created behind the scene?
What is String constant Pool?
String Interview Questions and answers
String Constant Pool Working in java


En esta página del sitio puede ver el video en línea #string de Duración hora minuto segunda en buena calidad , que subió el usuario SJ Programming Solutions 04 febrero 2022, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 1,320 veces y le gustó 27 a los espectadores. Disfruta viendo!