Hi, I think an object is serializable when it explicitly implement Serializable interface. Are there any objects that are by default serializable.I mean implicitly implimenting Serializable interface? - Thanks
Ajith Kallambella
Sheriff
Joined: Mar 17, 2000
Posts: 5782
posted
0
Object streams implement Serializable interface. There are a lot of other classes which implement sub-interfaces of serializable. Java API documentation is the best place to find what you are looking for. Ajith
Open Group Certified Distinguished IT Architect. Open Group Certified Master IT Architect. Sun Certified Architect (SCEA).
Doit
Ranch Hand
Joined: Aug 03, 2000
Posts: 169
posted
0
Thanks Ajith, I found that Vector,String,Exception,all Wrapper classes,GridBagConstraint classes are serializable. But are they serializable without explicitly implementing the Serializable interface?? - Thanks
Ajith Kallambella
Sheriff
Joined: Mar 17, 2000
Posts: 5782
posted
0
Nope. They must implement the Serializable interface in order to become serializable. Ajith