In Serialization, whether you will use Static variables?
Answer Posted / ranganathkini
Static variables are not serialized during object serialization.
If u want to serialize static fields, then u must use ur own
serialization overrides and implement the
java.io.Externalizable interface on the class.
Is This Answer Correct ? | 3 Yes | 2 No |
Post New Answer View All Answers
What is use of super keyword in java?
How does hashset work in java?
What is the file extension for java?
What are thread local variables?
What is class forname used for?
What is passed by reference and pass by value ?
What is java virtual machine and how it is considered in context of java’s platform independent feature?
What is purpose of keyword void?
What is reflexive association?
What are the basic interfaces of java collections framework?
What are encapsulation, inheritance and polymorphism?
Define canvas?
What is the difference between multiple processes and multiple threads?
What are the advantages of packages in java?
What is the scope or life time of instance variables?