题库 软件开发 题目列表 执行以下程序后,输出结果正确的是?() pub...
单选题

执行以下程序后,输出结果正确的是?()

public class Main {

    public static void main(String[] args) {

        String s1 = "abc";

        String s2 = "abc";

        System.out.println(s1 == s2);

        String s3 = new String("abc");

        System.out.println(s1 == s3);

    }

}

A.

true true

B.

true false

C.

false fasle

D.

false true

题目信息
校招真题
-
正确率
0
评论
14
点击