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 do you mean by local variable and instance variable?
What do you know about the garbate collector?
What is an eror in java?
What is a predicate method?
What is a percentage sign called?
What are peerless components?
What is java volatile?
What is the base class in java from which all classes are derived?
Explain jdk, jre and jvm?
What are the methods of object class ?
What is a stringbuilder?
What are controls and their different types in awt?
Why is java called the platform independent programming language?
Mention some interfaces implemented by linked list in java.
What is the relationship between class and object?