Thanks for your answer.
Yes, I understand that I must use equals method for comparing two strings.
My question is more about Java theory. Not about practical issues.
I tried find something in...
Type: Posts; User: na9ort
Thanks for your answer.
Yes, I understand that I must use equals method for comparing two strings.
My question is more about Java theory. Not about practical issues.
I tried find something in...
Hi.
I have a question about string pool.
There is a code:
public static void main(String[] args) {
String s1 = new String("ABC");
String s2 = new String("ABC");