What things are required for a class that implements Serializable?

Tim Rohaly

A class that implements Serializable must also:

  • Have access to a no-argument constructor in its first non-serializable superclass
  • Identify non-serializable data members using the transient keyword or explicitly mark data members as serializable using the serialPersistentFields member.
0 Comments  (click to add your comment)
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

About | Sitemap | Contact