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 data type in computer?
Why volatile is used in java?
what is the difference between yielding and sleeping? : Java thread
What does the @override annotation do?
What is difference between final and finally in java?
Can you give few examples of final classes defined in java api?
What is multithreading and its advantages?
Is string pool garbage collected?
What does sprintf return?
How is java created?
Explain wait(), notify() and notifyall() methods of object class ?
Explain about core java?
What is a constructor, constructor overloading in java?
How to display all the prime numbers between 1 and n (n is the number, get the input from user)
What is scope & storage allocation of static, local and register variables? Explain with an example.