Skip to content

niwanthaniluka/Java-Serialization-DeSerialization

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

Java-Serialization-DeSerialization

A simple Java project that demonstrates object serialization and deserialization using ObjectOutputStream and ObjectInputStream.

Project Description

This project shows how to:

  • Make a Java class serializable by implementing the Serializable interface
  • Serialize (save) an object to a file
  • Deserialize (load) the object back from the file
  • Use try-with-resources for safe handling of streams
  • Include serialVersionUID for better version control

Features

  • Clean and modern code structure
  • Proper exception handling
  • Uses package structure (com.example.serialization)
  • Prints the deserialized object's data to verify the process

Technologies

  • Java (JDK 8 or higher)
  • No external dependencies (pure Java SE)

How to Run

  1. Clone the repository:
    git clone https://github.com/niwanthaniluka/Java-Serialization-DeSerialization.git

About

Simple Java project demonstrating object serialization and deserialization using ObjectOutputStream and ObjectInputStream

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages