Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

When is a Not SerializableException exception thrown (thrown)? a) When you try t

ID: 3843795 • Letter: W

Question

When is a Not SerializableException exception thrown (thrown)? a) When you try to serialize an object of a class that doesn't implement Serializable. b) When you try to serialize an object that contains an object of a class that doesn't implement Serializable. c) When you try to deserialize an object of a class that doesn't implement Serializable. d) a and b e) a, b, and c What is "risky" about the object serialization process? a) Creating an Object Input Stream object b) Creating an Object Output Stream object c) Reading an object from an Object Input Stream d) Writing an object to an Object Output Stream e) All of the above

Explanation / Answer

20. when is a NotSerializableExcept exception thrown(thrown)?

option c:

The exception is thrown when an instance of class must implement the serialization interface.

21. what is "risky" about the object serialization process?

ans: Risky is reading an object from an OBJECTIPUT STREAM

because it is completely depends on the nature of the program.

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote