单选题 Java
题号 #3633488

在编写Java 程序的时候,如果不为类的成员变量定义初始值,Java 会给它们设置默认值,下列说法中不正确的是(  )。

进入在线模考

参考答案

C

答案解析

Long 类型的默认值为0L,而不是0.0L。

你可能感兴趣的试题

A.String[]a;
B.String a[];
C.char a[50][];
D.String a[]=new String[50]
A.编译未通过
B.编译通过,但运行错误
C.可以运行,但有错误
D.以上都不对
A.public protected final inti;
B.abstract class F1{...}
C.private double height ;
D.double weight{}
找试题 · 找答案 · 找资料 在线模考