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
Discuss different types of errors that generally occur while programming.
Is constructor inherited?
Why do we need data serialization?
What is difference between overloading and overriding in java?
What is the main functionality of the remote reference layer?
I am unable to find or learn about print command. I have a graphical program in core java in applet but i want to give print command but i have coding for that so if anyone know about this plz mail me on avdhesh_chauhan007@yahoo.co.in
What are the advantages of java inner classes?
How is java created?
Can a class extends itself in java?
What is a substring of a string?
What is the static block?
Can we declare the main method of our class as private?
What is difference between module and function?
List types of storage classes in java?
What is try-with-resources in java?