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
Can we use both this () and super () in a constructor?
Explain why wait(), notify() and notifyall() methods are in object class rather than in thread class?
Can we override the private methods?
Does sprintf add a null terminator?
what is object slice?
How can you read content from file in java?
What is thread count in java?
Can we have this () and super () together?
What is method and methodology?
Can we instantiate interface in java?
What a static class can contains?
Explain the available thread states in a high-level?
How do you use spaces in java?
What is the use of toarray () in java?
What are the classes of java?