O'Reilly logo

Ivor Horton's Beginning Java™ 2, JDK™ 5th Edition by Ivor Horton

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 12. Serializing Objects

In this chapter, you'll see how you can transfer objects to and from a stream. By the end of this chapter you will have learned:

  • What serialization is and how you make a class serializable

  • How to write objects to a file

  • What transient fields in a class are

  • How to write basic types of data to an object file

  • How to implement the Serializable interface

  • How to read objects from a file

  • How to implement serialization for classes containing objects that are not serializable by default

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required