摘要: 1 public class Test { 2 public static void main(String[] args) { 3 final int a = 11; 4 int b = 111; 5 a = 123;//The final local variable a cannot be a 阅读全文
posted @ 2017-11-14 21:46 我的名字叫红 阅读(266) 评论(0) 推荐(0) 编辑
摘要: 1 public class Dog implements Serializable { 2 3 private static final long serialVersionUID = 2239821175446189806L; 4 private String kind; 5 private S 阅读全文
posted @ 2017-11-12 21:11 我的名字叫红 阅读(4964) 评论(1) 推荐(1) 编辑
摘要: 1 public class Person implements Serializable { 2 3 // 构造器初始化 4 public Person() { 5 name = "父类构造器初始化10。。。"; 6 System.out.println(this.name); 7 } 8 9 / 阅读全文
posted @ 2017-11-12 15:54 我的名字叫红 阅读(435) 评论(0) 推荐(0) 编辑