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 |
What is the difference between overriding & overloading?
What is difference between Heap and Stack Memory?
What is meant by final class?
What do you understand by copy constructor in java?
Can a class have 2 constructors?
What are exceptions
Default layout of panel and frame?
Hi buddy, well i got that there is always a default constructor with abstract class. OK. But why not with interface? Thanks in advance.
What are void pointers?
Which containers use a FlowLayout as their default layout?
can we have function for truncating the sign as like abs in oracle.
What is lazy initialization in java?