Basically, it is a method to compare the strings which will print the value as true even without the use of the equals method. You can take the below example as a reference:
String s = "a" + "bc";
String t = "ab" + "c";
System.out.println(s == t);
I hope this will help.
Want to know more about Java? Prefer this tutorial on Learn Java.
Want to become a Java Expert? Join Java Training now!!