摘要: https://www.cnblogs.com/wellmaxwang/p/4422855.html 对于 Integer var = ? 在-128 至 127 范围内的赋值,Integer 对象是在IntegerCache.cache 产生,会复用已有对象,这个区间内的 Integer 值可以直 阅读全文
posted @ 2021-09-01 16:50 正和体重斗智斗勇 阅读(163) 评论(0) 推荐(0)
摘要: 1 public class MyTest { 2 3 private String name="rudolf"; //成员变量/实例变量 4 private int age =23; 5 private static String sex="male"; //类变量/静态变量 6 7 public 阅读全文
posted @ 2021-09-01 14:42 正和体重斗智斗勇 阅读(98) 评论(0) 推荐(0)