- String 字面值赋值
- 字符串采用new 创建
- 31节关于字符串拼接,intern方法值得面试前看
- 包装类byte, short ,int,long,float,double,boole
- 数组的length属性是public final的,例如:每次初始化数组new int[6]的时候在构造方法里赋值为6,不能修改!
- 只声明对象数组(P[] p=new P[5]),不赋值的时候会默认为null,且不会产生对象5个P对象
转载于:https://www.cnblogs.com/yuxishua/p/5025343.html