题目内容
写出下面程序的运行结果:public class Test {public static void main(String[] args) {String x = "Hello";String y = "World";String a = "HelloWorld";String b = x+y;String c = new String("HelloWorld");System.out.printf("%b,%b,",a==b,a.equals(b));System.out.printf("%b,%b",b==c,b.equals(c));}}
查看答案
搜索结果不匹配?点我反馈