根据下面的程序代码,哪些选项的值返回true?public class Square {long width;public Square(long l) {width = l;}public static void main(String arg[]) {Square
A,
B, c;a = new Square(42L);b = new Square(42L);c = b;long s = 42L
欢迎免费使用小程序搜题/刷题/查看解析,提升学历,成考自考报名,论文代写、论文查重请加客服微信skr-web
根据下面的程序代码,哪些选项的值返回true?public class Square {long width;public Square(long l) {width = l;}public static void main(String arg[]) {Square
A,
B, c;a = new Square(42L);b = new Square(42L);c = b;long s = 42L; } }
A.a == b
B.s == a
C.b == c
DA.equals(s)
正确答案C
×
提示:小程序已经收录此题,请在小程序查看名师解析。翰林刷小程序提供搜题,刷题,助你轻松通过考试