String str1 = "Hello";
String str2 = "Hello";
String str3 = new String("Hello");
System.out.println("str1.hashCode(): " + str1.hashCode());
System.out.println("str2.hashCode(): " + str2.hashCode());
System.out.println("str3.hashCode(): " + str3.hashCode());
System.out.println("str1.equals(str2): " + str1.equals(str2)); // true
System.out.println("str1.equals(str3): " + str1.equals(str3)); // true
리터럴(literal)은 코드에서 직접 값으로 나타나는 데이터