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 |
Explain the importance of throws keyword in java?
What is the collections api in java programming?
What is arrays sort in java?
Can we have multiple catch block for a try block?
How is it possible for two string objects with identical values not to be equal under the == operator?
Is char a method in java?
can we override the main() method in java????
3 Answers Vimukti Technologies,
How do you test a method for an exception using junit?
How big is a 32 bit integer?
What are the Memory Allocations available in JavaJava?
When will we use them?
How to print an arraylist in java?