File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes serialization's writeObject() vs Externalization writeExternal() Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "serialization Watch "serialization New topic
Author

serialization's writeObject() vs Externalization writeExternal()

sharan vasandani
Ranch Hand

Joined: Feb 22, 2007
Posts: 100
what is the difference if we implement Serializable and provide writeObject() which does not have a call to writeDefaultObject()
writeObject() has only customized logic, no call to default serialization.

How is this different from implementing Externalizable?
Ankit Garg
Sheriff

Joined: Aug 03, 2008
Posts: 9304
    
  17

Serializable is not on the exam any more...


SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
Rajiv Vadehra
Greenhorn

Joined: Mar 01, 2011
Posts: 9

Serialization is no more in the scjp6 exam syllabus?? sure about it...
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: serialization's writeObject() vs Externalization writeExternal()