Reputation: 418
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
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