Lets say we want to write an instance of Cereal to disk, having a name value of

Question:

Let’s say we want to write an instance of Cereal to disk, having a name value of CornLoops and sugar value of 5. What is the value of name and sugar after this object has been read from disk using the ObjectInputStream’s readObject() method?

image text in transcribed

A. CaptainPebbles and 10

B. CornLoops and 0

C. SugarPops and 10

D. SugarPops and 2

E. CornLoops and -1

F. None of the above.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Question Posted: