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 singleton set an interval?
What do you understand by final value?
can used Protected Class outside Function.?
How to create a custom exception?
Can we override static methods in java?
When should I use a singleton?
What is the loop in java?
Why java is a platform independent? Explain
What is an enumeration?
What modifiers are allowed for methods in an interface?
How do you remove an object from an arraylist in java?
What is a class in java?
How the metacharacters are different from the ordinary characters?
What is the difference between synchronized and synchronized block?
How does hashmap work in java ?