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
Is java type safe?
What is google full form?
Can extern variables be initialized?
Who is the owner of java?
Can private members of a base class are inheritable justify?
What is a default constraint?
What is style and indentation?
Difference between java and javascript
What is adapter in java?
Is there any difference between nested classes and inner classes?
What is use of static method?
Where to store local variables?
What is methodological theory?
What does three dots mean in java?
Can we use catch statement for checked exceptions?