Harsh Shah
Harsh Shah

Reputation: 418

Java Serialization to file

I was just wondering when serializing any object in java to a file using the ObjectOutputStream, do all the methods to it also get serialized or only the data gets stored to the file?

Upvotes: 0

Views: 46

Answers (1)

merlin2011
merlin2011

Reputation: 75545

Serialization is a process of taking object state and transforming it into a format for storage on disk, or sending over the network.

Object state is fully represented by the fields.

Upvotes: 1

Related Questions