Cool. Easy to learn java string and string constant pool
@aricaacharya59763 жыл бұрын
Best exaplaintion after watching 10 different videos. Great job man 👏
@giridatta15253 жыл бұрын
Great teaching, concept is very clear,keep doing more
@vineetjain75182 жыл бұрын
Great
@abdulshaik21065 жыл бұрын
Awesome.. Great teaching Sir 👏👏👏we understand the concept in ur teaching so soon..
@michaelhall460219 күн бұрын
This is late, but really good job explaining this.
@vladanulardzic58595 жыл бұрын
Perfect practical explanation ! Keep on ...
@pujabansal8105 жыл бұрын
Avilash you are great teachers. I am watching all of your video's. The way you explain things direct goes into brain.
@nainatiwari844 жыл бұрын
Nice explanation bhaiya.you are doing a great job.your english is mind blowing.keep it up.
@rishitamathur58086 жыл бұрын
thanks for making me understand so precisely😊
@vijayr65405 жыл бұрын
Super , Thankyou
@munaswamy65955 жыл бұрын
Super experience
@AlfonsoMonroyIV5 жыл бұрын
thanks man, and what happends when you make a System.out.println("var"); where is the "var" created? and what happen when I.E. String c="var"; System.out.println("var"==c); why does it return false?
@prakharprasant77665 жыл бұрын
true it will return
@hariindia22655 жыл бұрын
bro can u please do vedeos on java8 features full tutorial mainly java8 streams
@asthagarg46144 жыл бұрын
In case of String s= new String ("java")- since object is Stored in heap as well, then what role does java in String constant pool play?
@abhiny84 жыл бұрын
Scp is used to improve performance suppose we already have a string object with same content then it'll retrieve from scp quickly that's why creating strings with literals i.e String str="hello"; is preferred
@subbu5b06 жыл бұрын
How can you prove that 2 objects will get created (in heap & in Scotland) when we create a String object using new?
@amitgaikwad31204 жыл бұрын
-- You need to use intern() of String class. -- using intern() method with String object created using "new" keyword, will return the reference of the exact String object created in SCP area. public class TwoObjectsCreatedProof { public static void main(String[] args) { String s1= new String("Hello"); // 2 objects are created "Heap' and "SCP" area. String s2=s1.intern(); // returns the reference from the SCP area and assigns it to 's2'. System.out.println(s2); // prints "Hello" from SCP area System.out.println(s1==s2); // false } }
@akhil22285 жыл бұрын
super
@annusunny5 жыл бұрын
@ 17:19 | S1 and S2 are not objects but just data types, Although good explanation.
@thannasip80015 жыл бұрын
not data type it reference variable right?
@sangram17467 жыл бұрын
Nice
@ashishbarik99367 жыл бұрын
Thank you abhilash I got the concept clear
@JohnWick-zc5li6 жыл бұрын
if the String pool becomes full -- how JVM will delete or flash the strings from Constant Pooling
@SaiSVolgs6 жыл бұрын
can you please explain what is differ b/w final and immutable
@swagatkumarsahu58573 жыл бұрын
When any string will be created with new key word like - new String("Java"), then the object will be created in Heap memory not in String Constant Pool.
@nareshbarik96345 жыл бұрын
if i go for s1.equals(s2) in IF statement then it will gives the output of if statement..how..this possible..?
@shubhangijore25865 жыл бұрын
Because equals method compare content in string class
@bipinesh086 жыл бұрын
How does the Intern method works if creating a string using new creates two objects one in the heap and one in scp. Isn't the whole purpose of intern is to create a copy in scp
@nar22055 жыл бұрын
String s=new String("java"); here, "java" will not go into string constant pool unless we say intern
@smyThegmc4 жыл бұрын
sen harikasın
@saktiranjanbehera70105 жыл бұрын
where is the scp area located in jvm ?
@ramkumar-id9hu Жыл бұрын
Heap
@parikshit33126 жыл бұрын
please remove the background music its irritating and distracting
@SeleniumExpress6 жыл бұрын
Sure.. Will keep that in mind. Thanks for letting me know Parikshit.