类Student代码如下: class Student{ String name; int age; Student(String nm){ name = nm; } } 执行语句Student stu = new Student()后,字段age的值是哪项?()
- A、 0
- B、 null
- C、 false
- D、 编译错误
正确答案:D
答案解析:有

微信扫一扫手机做题
类Student代码如下: class Student{ String name; int age; Student(String nm){ name = nm; } } 执行语句Student stu = new Student()后,字段age的值是哪项?()
微信扫一扫手机做题