+ 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

26th Mar 2018, 7:25 PM
Ankit satapathi
Ankit satapathi - avatar
3 ответов
+ 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();
2nd Apr 2018, 2:29 AM
Ankit satapathi
Ankit satapathi - avatar
1st Apr 2018, 7:38 PM
Emma
0
https://www.sololearn.com/discuss/1378460/?ref=app
1st Jul 2018, 4:59 AM
Dylan Brantner
Dylan Brantner - avatar