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
How do you differentiate abstract class from interface?
What is a java predicate?
Can we use switch statement with strings?
What language is pass by reference?
Explain when classnotfoundexception will be raised ?
What is a default method?
What does java stand for?
Explain the importance of import keyword in java?
What is a lambda expression ? What's its use ?
What best practices should you follow while writing multithreaded code in java?
List down the methods and interfaces of collection class in java.
What is substring 1 in java?
Differentiate between array list and vector in java.
Is java se open source?
Why do we need strings in java?