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 |
INTERVIEW QUESTION FOR ANDROID
Describe method overriding
What is the default execution method in java?
Explain java coding standards for methods?
Can java list be null?
What is the largest data type in java?
What is java string pool?
Adapter classes?
What is t type java?
What are the four versions of java?
what is the use of Clonable,and serializable interface?
Why is serialization required?