What is the output of the following code.
What is the output of the following code.
public class Main{ public static void main(String[] args) { String aas = "aaa"; String bbs = "aaa"; System.out.println(aas == bbs); bbs = new String("aaa"); System.out.println(aas == bbs); } }
true false
== compares the address of value