why to use transient variables when static variables can be
used for Serialization
Answer Posted / priyanjan
static variables can also serialized but is a very
cumbersome process. Transient keyword prefixing any
variable states that the varible does serialized but its
state i.e. value of the varible, does not serialize.
Is This Answer Correct ? | 10 Yes | 7 No |
Post New Answer View All Answers
What is arguments in java?
what is optional in java 8?
Explain yield() method in thread class ?
What is the difference between scrollbar and scrollpane?
Is array an object in java?
Is age a discrete variable?
What is an infinite loop in java? Explain with an example.
What are memory tables?
What is Enum in Java?
Will set allow duplicates in java?
How do I get a substring?
What is a java developer salary?
What is a void method?
Explain notifyall() method of object class ?
Is c better than java?