题目内容

public class StringDemo {public static void main(String[] args) {String stra="hello";String strb=new String("hello");String strc=strb;System.out.println(stra==strb);}}程序运行结果为()

查看答案
更多问题

public class StringDemo {public static void main(String[] args) {String stra="hello";String strb=new String("hello");String strc=strb;System.out.println(stra==strc);}}程序运行结果为()

public class StringDemo {public static void main(String[] args) {String stra="hello";String strb=new String("hello");String strc=strb;System.out.println(strb==strc);}}程序运行结果为()

public class StringDemo {public static void main(String[] args) {String stra="hello";System.out.println("hello".equals(stra));}}程序运行结果为()

public class StringDemo {public static void main(String[] args) {String stra=new String("hello");System.out.println("hello"==stra);}}程序运行结果为()

答案查题题库