In Serialization, whether you will use Static variables?
Answers were Sorted based on User's Feedback
Answer / chandramouli
We cannot serialize the static variables because static is
specific to the class not for the objects.
Is This Answer Correct ? | 9 Yes | 0 No |
Answer / 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 |
Explain the importance of finalize() method.
What is the difference between class & structure?
what is business delegate?
How do you escape in java?
What one should take care of, while serializing the object?
Can we execute java program without main method?
Is java free for businesses?
If I only change the return type, does the method become overloaded?
How to reverse string in java?
Where pragma is used?
Do you need to import math in java?
Why object class is super class for every class in java?