Chinaunix首页 | 论坛 | 博客
  • 博客访问: 2535512
  • 博文数量: 245
  • 博客积分: 4125
  • 博客等级: 上校
  • 技术积分: 3113
  • 用 户 组: 普通用户
  • 注册时间: 2009-03-25 23:56
文章分类

全部博文(245)

文章存档

2015年(2)

2014年(26)

2013年(41)

2012年(40)

2011年(134)

2010年(2)

分类: Java

2014-06-15 10:48:19

实现序列号接口(Serializable),标记这个类可以被序列化。 “I’m fine to be serialized”.

当你尝试序列化没有实现Serializable接口的对象时,将会抛出异常 NotSerializableException.

The idea is to be able to transparently serialize instances of the class – potentially for caching or other purposes, I’m not sure in this case. The serialVersionUID field is just part of the versioning that Java binary serialization uses.

参考:

阅读(1392) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~