Java学习笔记-类型初始化

初始化默认值:

int[] i=new int[3]; -->i[0]==0;

int[][] 多维问题 小心溢出 容易把对象造的过大,OutOfMemoryError,Java heap space :对象过于的大了

boolean[] b=new boolean[3]; -->b[0]==0;

 

posted @ 2014-02-27 09:22  kcrosswind  阅读(113)  评论(0编辑  收藏  举报