单选题 Java 题号 #153835 下列哪项是将一个十六进制值赋值给一个long型变量? A.long number = 123L; B.long number = 0123; C.long number = 0123L; D.long number = 0x123L; 收起答案及解析 进入在线模考 参考答案 D 答案解析 暂无解析 你可能感兴趣的试题 1 下列程序段执行后的输出结果为 int x=3; inty=10; System.out.println(y%x); A.0 B.1 C.2 D.3 查看解析 → 2 下列的哪个程序段可能导致错误?A.String s = " hello"; String t = " good "; String k = s + t; B.String s = " hello"; String t; t = s[3] + "one"; C.String s = " hello"; String standard = s.toUpperCase(); D.String s = "hello"; String t = s + "good"; 查看解析 → 3 在下列程序的划线处应填入的语句是 class Person { private int a; } public class Man extends Person { public int b; public static void main(String arg[]) { Person p = new Person(); Man t = new Man (); int i; ________ } } A.i = w; B.i = bC.i = a; D.i = b; 查看解析 →