8:50 this is not create in string pool.. literal string only create in string pool..this is string object. so here 2 object with two memory "Test" will be create
@@karthikvalliyappan8916 every time you initialize string using new keyword, you're creating new representation of string in string pool, hence in this example 2 objects with value "Test" will be created. If you are using string literals to create string ie String a = "abc"; , java will check string pool first, and if same string already exist it will just create reference to that string, as strings are immutable and that value will never be changed. Hope this helps
8:50 this is not create in string pool.. literal string only create in string pool..this is string object. so here 2 object with two memory "Test" will be create
Yes
This answer must be pinned to avoid confusion
need correct answer bro,, 2 0r 3 objects
@@SureshSDETAutomation need correct answer bro,, 2 0r 3 objects
@@karthikvalliyappan8916 every time you initialize string using new keyword, you're creating new representation of string in string pool, hence in this example 2 objects with value "Test" will be created. If you are using string literals to create string ie String a = "abc"; , java will check string pool first, and if same string already exist it will just create reference to that string, as strings are immutable and that value will never be changed.
Hope this helps
Very very informative
Very informative. Thank you sir
Thanks for writing
Hi sir ,Create part 2 and part 3 of this series
Sure
Thanks for writing
Sir plz share questions for selenium
Thanks for writing
Here is questions session
ruclips.net/video/2UXClRI9S60/видео.html
Thank you so much sir.
Thanks for writing
thank u sir....
Thanks for writing
why dint you consider OOPS ?
Thanks for writing, will add a new session with OOPs concepts soon.
Very nice thankyou for this
Thank you
Thanks anna
Thank you so much Sir..
Thanks for writing
Thank you so much sir..
Thanks for writing