JavaRush
AI Academy
new
Promotion
Learning
Courses
Tasks
Quizzes
Games
Help
Schedule of nudges
Internship
Community
Users
Forum
Chat
Articles
Activities
Reviews
Subscriptions
Light theme

Lectures

  • Reviews
  • About us
  • CS50
Start
Start learning
Start learning
  • My progress
  • Courses
  • Quest map
  • Lectures
  • Introduction to object serialization: why you need it

    JAVA 25 SELF
    42 level,0 lecture
    Why and how to “pack” objects in Java: turn them into a byte stream and back using ObjectOutputStream/ ObjectInputStream, persist state between launches, send over the network, and cache results. We break down the role of the Serializable interface, nuances with the transient keyword and strings like "save.dat", discuss security risks and version compatibility. Practice: a mini game save, client↔server message sending, and computation caching.
    Open
  • Serializable Interface: Basic Principles

    JAVA 25 SELF
    42 level,1 lecture
    We cover the basics of serialization in Java: the marker interface java.io.Serializable, how to mark a class using implements Serializable, field requirements ( static, transient), step-by-step examples of writing and reading objects with ObjectOutputStream/ ObjectInputStream, what happens “under the hood” when calling writeObject/ readObject, as well as common mistakes (non-serializable fields, inner classes, behavior of static fields, and class versioning via serialVersionUID).
    Open
  • Standard serialization formats: binary, text

    JAVA 25 SELF
    42 level,2 lecture
    In this lecture, we compare Java binary serialization via the ObjectOutputStream and ObjectInputStream classes with text formats ( JSON, XML): how they work, speed and compactness, version compatibility, and security. We examine advantages and limitations, show hands-on practice with Jackson (including the Maven dependency), and give advice on when to choose which, along with common mistakes.
    Open
  • ObjectOutputStream, ObjectInputStream: working with streams

    JAVA 25 SELF
    42 level,3 lecture
    In this lecture, we analyze how to serialize and deserialize objects in Java using the paired streams ObjectOutputStream and ObjectInputStream: what the marker interface java.io.Serializable is, how the methods writeObject() and readObject() work, why static and transient fields are not written to the stream, which exceptions occur ( NotSerializableException, InvalidClassException), and what serialVersionUID affects. In practice, we serialize one object and a list of objects to a file and go through typical mistakes.
    Open
  • Serialization of Collections: List, Map, Set

    JAVA 25 SELF
    42 level,4 lecture
    A practical guide to serializing collections in Java: how to save and restore List, Map, Set via ObjectOutputStream/ ObjectInputStream; why most collections already implement Serializable; requirements for elements; ordering behavior in HashSet/ HashMap; working with nested and empty collections; pitfalls ( InvalidClassException, serialVersionUID, transient/ static). We finish with a full-fledged “virtual library” example.
    Open
Courses
  • Java Course
  • Python Course
  • Development with Claude Code
  • All 16 courses
University
  • Java FullStack
  • Python FullStack
  • AI Native Developer
  • Web FullStack
Community
  • Articles
  • Forum
  • Help with Tasks
Company
  • About us
  • Contacts
  • Reviews
  • Pricing
  • Questions and answers
JavaRush JavaRush: online courses in Java and other programming languages, where you learn by solving tasks. We started in 2012 with a Java course, and today there are 16 courses: Java and Spring, Python, web development, SQL, Go, C#, C++, Kotlin, Swift, Docker and AI development. More than 10,000 tasks with instant checks, and the first level of any course is free. Learn on your own or with a mentor at JavaRush University.
Follow us
Язык интерфейса
Русский
English
Українська
"Programmers are not born" © 2026 JavaRush Terms of Use and Privacy policy
MastercardVisa
"Programmers are not born" © 2026 JavaRush Terms of Use and Privacy policy