What is ObjectStreamField used for?

John Zukowski

Starting with Java 2 Standard Edition, version 1.2, instead of using the transient keyword to define what fields are serializable within a class, you may create an array of ObjectStreamField objects to define the serializable fields within the class. This is demonstrated in How should I declare fields within my serializable class to prevent them from being serialized?

0 Comments  (click to add your comment)
Comment and Contribute






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



About | Sitemap | Contact