wood burning stoves 2.0*
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Serialization
 
Similar Threads
Failed to marshal exception problem
Serielizible?
I meet a problem. It is very interesting!!!!!!!!!!!!!!!!
RMI:at client side getting exceptrion like java.io.NotSerializableException
Are collections Serializable Objects