Take the 2-minute tour ×

class Siva implements Serializable {


But without using the Serializable interface how to make our class as serializable

share|improve this question
add comment

2 Answers

Probably if you require to have your own logic for Serialization, then go and implement Externalizable interface.

share|improve this answer
add comment

If can decide not to use Serializable, but then you will have to provide the Serialization/Deserialization logic.

The only way to use the Java API serialization methods is through the Serializable interface.

Just out of curiosity: why don't you want Serializable? It is not that it is hard to implement...

share|improve this answer
add comment

Your Answer


