Serialization

Following rules are described-

  1. Introduction
  2. Item 85: Prefer alternatives to Java serialization
  3. Item 86: Implement Serializable with great caution
  4. Item 87: Consider using a custom serialized form
  5. Item 88: Write readObject methods defensively
  6. Item 89: For instance control, prefer enum types to readResolve
  7. Item 90: Consider serialization proxies instead of serialized instances

Introduction

JAVA – Object SERIALIZATION,
It is Java’s framework for encoding objects as byte streams (serialising) and reconstructing objects from their encoding (serialising). This mechanism is used to persist the object. This chapter focuses on the dangers of serialization and how to minimize them.