Vidyalelo
Java Programming · Q4

Java Serialization and Networking

Programming · Java Programming · question 4

Q4

In Java Serialization, what is the purpose of the `transient` keyword when applied to an instance variable?

A.
It indicates that the variable is mandatory for serialization
B.
It indicates that the variable should not be serialized
Answer
C.
It indicates that the variable should be ignored during deserialization
D.
None of These

Answer: Option B

Solution

Answer: Option B
No explanation is given for this question Let's Discuss on Board