I want to know why the result of this program gives false when both of the strings are exactly the same, also why is the text "WHY" not appearing in the console.
public class prac {
public static void main (String args []){
String a = "wtf";
String b = "wtf";
System.out.println("WHY" + a==b);
}
}
Thanks!