Loading…
Loading…
Ten exam-style questions on Java serialization: Serializable, transient and static fields, constructors and initializers on deserialization, non-serializable parents, records, serialVersionUID, EOFException and checked exceptions, with explanations.
Practice questions for the article Java Serialization: Serializable, transient, serialVersionUID and Records.
Every code answer was checked by running the code on JDK 21. Aim for at least 8 out of 10.
Quiz path: step 102. Take the quizzes in this order, after reading each article.
Previous quiz: Reading and Writing Files (OCP 21)
Next quiz: Console and User Interaction (OCP 21)
10 questions · pass at 68%
Check your understanding; you see the answers and explanations after submitting.
Discussion
Sign in to ask a question or share what you learned.