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
Explain the difference between hashmap and hashtable in java?
What is core java called?
Can a lock be acquired on a class in java programming?
Is java a security risk?
How listener identify that the event came from a particular object?
Which keyword specify that a variable is effectively final ?
What is the difference between access specifiers and access modifiers in java?
What is array class in java?
When do we use synchronized blocks and advantages of using synchronized blocks?
What is super keyword explain with example?
Can an arraylist be empty?
What is variable and example?
State some advantages of java?
What is a generic code?
How do I remove a character from a string in java?