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 |
Can you extend more than one interface?
What is considered an anti pattern?
What is the statements?
what is the difference between ArrayList and Vector
19 Answers KPIT, Sasken, Satyam, Span Infotech, Wipro,
What is your platform’s default character encoding?
What is scanner in java?
Why does java doesnt suuport unsigned values?
How define set in java?
What are the types of arrays in java?
Why runnable interface is used in java?
Explain java code for recursive solution's base case?
What is local variable and instance variable?