当前位置: 答题翼 > 问答 > 计算机类考试 > 正文
目录: 标题| 题干| 答案| 搜索| 相关
问题

类Student代码如下:DclassStudent{Stringname;intage;Student(Stringnm){(构造方法)name=nm;}}执行语句Studentstu=newStudent()后 字段age的值是哪项?()


类Student代码如下:DclassStudent{Stringname;intage;Student(Stringnm){(构造方法)name=nm;}}执行语句Studentstu=newStudent()后,字段age的值是哪项?()

A、0

B、null

C、false

D、编译错误

参考答案
您可能感兴趣的试题
  • 要求: 1. 按如下类图写出相应数据库建表 sql 脚本。 其中 Student 和 Score 是1 对多的关系,Scro

  • 要求: 1. 按如下类图写出相应数据库建表 sql 脚本。 其中 Student 和 Score 是1 对多的关系,Scro

  • 修改操作的语句 update student set s_name =N’王军’ 该代码执行后的结果是:A.只把姓名叫王军的

  • 请把下划处的代码补充完整: ______ into student (s_name) ______(N’王大军’)A.update, values

  • 分析下面的JavaScript代码段 输出结果是( )var mystring=I am a student;a=mystring.charAt(9);document.write(a);

  • 自定义一个Rectangle类 代码如下: public class Rectangle{ double l w; Rectangle(){ return l*w;} } 下列哪个正确?