+ 7
How to refer a string constant pool area object by using heap area reference variable
there is an object in string constant pool area and we have to access that object by using a reference variable which is in heap area
3 odpowiedzi
+ 3
one can refer an object of string constant pool area by using intern() method.
ex: String s1=new String ("answer");
String s2=s1.intern();
0
Does this help at all?
http://www.thejavageek.com/2013/06/19/the-string-constant-pool/
0
https://www.sololearn.com/discuss/1378460/?ref=app