Try java.lang.String
String x = "Hello"; String y = "Hello";
x=Hello, y=Hello x==y : true Objects.equals(x,y) : true x.equals(y) : true
Java does this for efficiency.