首页 > 电脑/网络 >程序设计 >JAVA相关
2017-11-16 00:00:00 2017-11-17 23:59:59 http://h.chanjet.com/activity/hkj/xlaw/xlaw.html http://yyk.iask.sina.com.cn/pic/fimg/3991231702_800.jpg 2018-03-26 00:00:00 2018-04-25 23:59:59

java 中char 的初始值

此代码运行后,char的初始值为空?为什么? class Valuement { boolean a; char b; byte c; short d; int e; long f; float g; double h; void print() { System.out.println("Data type Inital value"); System.out.println("boolean "+a); System.out.println("char "+b); System.out.println("byte "+c); System.out.println("short "+d); System.out.println("int "+e); System.out.println("long "+f); System.out.println("float "+g); System.out.println("double "+h); } } public class InitVal { public static void main(String[]args) { Valuement value=new Valuement(); value.print(); } }[展开]

我*** 2009-04-05 14:18:01 举报

好评回答

其他回答

50分钟前 广告
查看详情

类似问题换一批

相关知识 换一批

java和dotnet哪...

.net,一定要学好asp.net . java你短时间是学不好...

热度TOP 查看更多

大家都关注换一批

提问

热点搜索更多

举报

举报原因(必选):

取消 确定举报
3a7f7956b2984ca88f5d5c19c0fe4715