Multiple choice technology programming languages

Can primitive data types be serialized, technically?

  1. True

  2. False

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

Primitive data types cannot be directly serialized in Java - serialization works on objects. To serialize primitives, they must be wrapped in their corresponding wrapper classes (Integer, Double, etc.). The serialization mechanism operates on ObjectOutputStreams which write object graphs, not primitive values.