CodeGym
Promotion
CodeGym University
Learning
Courses
Tasks
Surveys & Quizzes
Games
Help
Schedule
Community
Users
Forum
Chat
Articles
Success stories
Activity
Reviews
Subscriptions
Light theme

Lessons

  • Reviews
  • About us
Start
Start learning
Start learning now
  • My Progress
  • Courses
  • University
  • Quest Map
  • Lessons
  • You've reached Level 20!

    Java Core
    Level 10, Lesson 0
    Congratulations, you've completed Level 9 of the quest! You've learned a lot about I/O streams, gotten acquainted with adapters, practiced writing your own wrappers for System.out, and completed 29 tasks (unless you left two or three for later). On Level 10, we'll study serialization.
    Available
  • Saving an Object array

    Java Core
    Level 10, Lesson 1
    Your attention, please! At the secret CodeGym center, today there is a seminar named "How to Save an Object in a File One Line at a Time". All students who have reached the tenth level of the second quest are invited to attend. The seminar will be taught by Eleanor Carrey, doctor of interstellar sciences and our ship's navigator.
    Available
  • Saving an Object array to a file

    Java Core
    Level 10, Lesson 2
    Your teacher Diego has heard rumors that you, along with the other students on this level, attended a very interesting seminar that taught you how to save an object to a file one line at a time. Diego can't let that be. Now you'll have to complete tasks on this topic. But you wouldn't have it any other way, right?
    Available
  • Serialization. The beginning.

    Java Core
    Level 10, Lesson 3
    The Java machine can store and load its objects. It doesn't even need save and load methods to do it: All objects are stored inside the Java machine, and it has full access to them. Thus, serialization is the process of storing object state in a sequence of bytes, and it's native to the Java machin
    Available
  • Practice with serialization

    Java Core
    Level 10, Lesson 4
    How do you serialize a person? How do you serialize CodeGym? How do you serialize a singleton? How do you serialize static fields? Finally, how do you serialize something of your own? You'll have to answer these questions today by completing 5 tasks about serialization, prepared for you by Diego.
    Available
  • transient modifier

    Java Core
    Level 10, Lesson 5
    Class properties marked with the transient modifier are not serialized. Such fields usually store intermediate object state that may be easier to calculate than to serialize and then deserialize. Why? You'll learn in the lesson.
    Available
  • Saving data/Externalizable

    Java Core
    Level 10, Lesson 6
    Java has a very useful Externalizable interface. If it is replaced by the Serializable interface, a class can manage the serialization process manually. All because the Externalizable interface has two methods (which the Serializable interface does not) that are called by the Java machine when an object is serialized. Your teacher Rishi will show you what this looks like.
    Available
  • Tasks about serialization and deserialization

    Java Core
    Level 10, Lesson 7
    Serialization isn't so simple, is it? However, it's entirely within the reach of students wrapping up the second quest. Your teacher Diego invites you to reach it with some practice right now. That's why he's prepared five interesting tasks (or not so interesting, depending on who you ask).
    Available
  • Useful links from the Professor — 20

    Java Core
    Level 10, Lesson 8
    Of course, looking at the same material from different angles is useful, because everyone thinks differently, and perhaps for you the best source of the theory will be different from the source best suited to your friend. Today Professor Noodles has found you an interesting article on serialization.
    Available
  • How computer memory works

    Java Core
    Level 10, Lesson 9
    Are you ready to finish this quest? You might need a short breather before the final leap. We have a cool video today. This short but detailed explanation will teach you how computer memory works. And, of course, you’ll receive some dark matter. Good luck in completing the final tasks! But for now, relax and hit the play button.
    Available
  • Bonus task | Lesson 10 | Level 10

    Java Core
    Level 10, Lesson 10
    Captain Squirrels is on the phone! He has a couple of surprises for you. More precisely, not a couple, and they aren't surprises, but rather ten tasks on serialization. Consider them (and the three bonus tasks on algorithms) the final test of the quest.
    Available
Learn
  • Registration
  • Java Course
  • Help with Tasks
  • Pricing
  • Game Projects
  • Java Syntax
Community
  • Users
  • Articles
  • Forum
  • Chat
  • Success Stories
  • Activity
  • Affiliate Program
Company
  • About us
  • Contacts
  • Reviews
  • Press Room
  • CodeGym for EDU
  • FAQ
  • Support
CodeGym CodeGym is an online course for learning Java programming from scratch. This course is a perfect way to master Java for beginners. It contains 1200+ tasks with instant verification and an essential scope of Java fundamentals theory. To help you succeed in education, we’ve implemented a set of motivational features: quizzes, coding projects, content about efficient learning, and a Java developer’s career.
Follow us
Interface language
English
Deutsch Español हिन्दी Français Português Polski বাংলা 简体中文 मराठी தமிழ் Italiano Bahasa Indonesia 繁體中文 Nederlands 日本語 한국어 Bulgarian Danish Hungarian Basa Jawa Malay Norwegian Romanian Swedish Telugu Thai Українська Filipino Turkish Azərbaycan Русский Vietnamese
Programmers Are Made, Not Born © 2025 CodeGym
MastercardVisa
Programmers Are Made, Not Born © 2025 CodeGym