单项选择题
A. 123456
B. 123455
C. 123450
D. 编译错误
单项选择题 Java语言中表达式-12>>3的结果是哪项?()(12的二进制00001100,-12的二进制11110100)
单项选择题 类Teacher: class Teacher{ String name; float salary; Teacher(String name){ this.name = name; } Teacher(String name,float salary){ this.name = name; this.salary = salary; } } 执行语句Teacher t = new Teacher(“Tom”,2000.0f);后,字段salary的值是哪一项?()
单项选择题 类Student代码如下:D class Student{ String name; int age; Student(String nm){ (构造方法) name = nm; } } 执行语句Student stu = new Student()后,字段age的值是哪项?()