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 |
How do you check if a number is a perfect square?
what is abstract class in Java?
Difference between String & StringBuffer
16 Answers IBM, Infosys, Tech Mahindra, Wipro,
What are dot operator queries?
Java.util.regex consists of which classes?
Which sorting is best in java?
how can i connect to database in a applet ?
What is the difference between length and length() method in java?
Can a method be static?
Can java inner class be static?
What is the locale class in java programming?
what is object type casting? give some example with related?