Knowledge database
String s1 = "abc"; String s2 = "abc"; if(s1 == s2) System.out.println(1); //true!!!!! //zaś String test2 = "abcd"; String test = new String("abcd"); /*to 2 różne referencje !!!!!!!*/