aspose file tools*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Serialization Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Serialization" Watch "Serialization" New topic
Author

Serialization

Doit
Ranch Hand

Joined: Aug 03, 2000
Posts: 169
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
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
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
Nope. They must implement the Serializable interface in order to become serializable.
Ajith
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Serialization