圣思园java se培训总结(28-32)(Object类,String类,包装类,数组)

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