why to use transient variables when static variables can be
used for Serialization
Answer Posted / yogesh
A transient variable is a variable that may not be serialized.
Is This Answer Correct ? | 4 Yes | 6 No |
Post New Answer View All Answers
What is a local block?
What is float in java?
What is a java developer salary?
What do negative exponents mean?
What are thread local variables?
How do you allocate memory to object?
Explain the difference between the public, private, final, protected, and default modifiers?
Can static methods access instance variables in java?
Who is the owner of java?
How can constructor chaining be done by using the super keyword?
What is a generic data type?
How can you read content from file in java?
Why do we need wrapper classes?
Can the interface be final?
What is the use of StringTokenizer class?