请问一下,该如何理解下面的两组代码?有中文解释吗?为什么就两个双引号的差别就导致了输出结果的不同?
public class HelloWorld{
public static void main(String[] args) {
String mylearn="我爱慕课网";
String theaddrss="www.imooc.com";
System.out.println("mylearn");
System.out.println("theaddrss");
}
}
public class HelloWorld{
public static void main(String[] args) {
String mylearn="我爱慕课网";
String theaddrss="www.imooc.com";
System.out.println(mylearn);
System.out.println(theaddrss);
}
}