A simple Java project that demonstrates object serialization and deserialization using ObjectOutputStream and ObjectInputStream.
This project shows how to:
- Make a Java class serializable by implementing the
Serializableinterface - Serialize (save) an object to a file
- Deserialize (load) the object back from the file
- Use
try-with-resourcesfor safe handling of streams - Include
serialVersionUIDfor better version control
- Clean and modern code structure
- Proper exception handling
- Uses package structure (
com.example.serialization) - Prints the deserialized object's data to verify the process
- Java (JDK 8 or higher)
- No external dependencies (pure Java SE)
- Clone the repository:
git clone https://github.com/niwanthaniluka/Java-Serialization-DeSerialization.git