1 Method不能序列化 Method 没有implements java.io.Serializable(不然序列化会报错)java
2 不须要序列化的字段申明 java transient关键字 3 Class 就能够序列化io