Courses
Java
Home
Corporate
Consulting
Contact Us
Courses
Jobs
Custom Topics

Customize this course,
choose your topics

Building Your Course
Custom Order Page
Building Guidelines

Selectable Topics
Advanced Applets
Advanced AWT
Collections
CORBA
Custom Components
Drag'n Drop
Enterprise JavaBeans
Event Delegation
GridbagLayout
InfoBus
Inner Classes
Internationalization
Java 2 Overview
JavaBeans
JFC Overview
JSP (Java Server Pages)
JSP Tag Libraries (taglib)
JDBC
JNI
RMI
Security
Serialization
Servlets
Struts
Swing
WebServices Overview
XML

Serialization

Serialization is the ability to change an object into a stream of data. The stream contains not only the data in the object, but information representing the class of the object. Deserialization is the ability to re-create an object from a serialization stream.

Serialization is used in Java in a few places.

  • It can be used in RMI as a way of passing an object to a remote method.
  • It is also used in JavaBeans. A JavaBean should be serializable because builder tools rely upon the serialization mechanism to save the state of an application, to deploy application, and provide other operations in the builder tool.

Objectives

  • Understand how to read and write serialized objects
    • implementation of Serializable or Externalizable interface
    • support for versioned object
    • override writeObject() and readObject(), use defaultWriteObject() and defaultReadObject()
    • be aware of members that are not serialized (transients, statics) - and know how to handle them
  • Be aware of ways data security may be compromised and know how to avoid security problems
  • Be aware of execeptions that may occur during serialization

Specifications

  • Duration (total): 1.5 hours
  • Duration of Exercises: 30
  • Duration of Lecture: 1 hour

Pre-requisites

A table of contents of this module is available upon request.

Return to the Custom Order Page.

Copyright ©2007 by Petronio Technology Group, Inc. All rights reserved. Petronio, "Targeted Technology Training", "T3" and "Turning new technologies into your competitive advantage" are trademarks of Petronio Technology Group. All other trademarks are the properties of their respective companies.