Wolfone,
This link may be of help to you.
String constant/literal pool » the Open Tutorials
Syed.
Type: Posts; User: syedbhai
Wolfone,
This link may be of help to you.
String constant/literal pool » the Open Tutorials
Syed.
<code>
public static void main(String str[]) {
String s1="abc", s2="abc";
System.out.println(s1.hashCode());
System.out.println(s2.hashCode());
...
Hello.
It is okay to use "reference" in java termilonogy.
Suppose I have a ArrayList object arrayList that holds 'n' strings.
I invoke shrink(arrayList). In the shrink() method I remove the...