Hi all,
today a read article about performance java programing and there is tips use better and fast technique how can compare String.
String a = new String("testing"
a = a.intern();
String b = new String("testing"
b = b.intern();
if(a == b )
System.out.println("equals"
else
System.out.println("fuck"
till today I used only a.equals(b) ... Know somebody technique used with intern() method ??
Can somebody clear up disadvantages ???
THX
Never
today a read article about performance java programing and there is tips use better and fast technique how can compare String.
String a = new String("testing"
a = a.intern();
String b = new String("testing"
b = b.intern();
if(a == b )
System.out.println("equals"
else
System.out.println("fuck"
till today I used only a.equals(b) ... Know somebody technique used with intern() method ??
Can somebody clear up disadvantages ???
THX
Never