why to use transient variables when static variables can be
used for Serialization
Answer Posted / lenina
only non static and non transient variables can be serialized.
if we want a variable to be instance variable,but the
variable is non serializable variable, then we declare that
variable as transient. here exactly we can make use of
transient.
| Is This Answer Correct ? | 26 Yes | 7 No |
Post New Answer View All Answers
What are the different http methods?
How to sort elements in a parallel array in java?
What is sorting algorithm in java?
Is it safe to install java on my computer?
What is the final field modifier?
how to write a server program and sending the mails to the server using smtp protocol please help me
What is a qualifier in a sentence?
What is the difference between I ++ and ++ I in java?
What is difference between filereader and bufferedreader?
What is the most important feature of java? What is an interface?
what is use of functional interface in java 8?
What are the advantages of functions?
How do you remove spaces in java?
Which collection is thread safe in java?
What is extension method in java?