Win a copy of Classic Computer Science Problems in Swift this week in the iOS forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Externalizable  RSS feed

 
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is Externalizable in java

Regards

Nikhil
 
Ranch Hand
Posts: 1704
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When you want to write your own implementaion of serialization implement Externalizable interface which sub interface of Serialization. Whe you implement Externalizable interface you need implement readExternal() & writeExternal() methods of Externalizable interface.
 
Nikhil Bansal
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
But how is it different from Serializable.

Nikhil
 
Kj Reddy
Ranch Hand
Posts: 1704
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When you implement Serializable, JVM will take care of the serialization but Externalizable the coder need to take care of logid of serialization by implementing Externalizable interface methods.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!