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
What will happen if static modifier is removed from the signature of the main method?
What is indexof?
What does java stand for?
Which method you will use to create a new file to store some log data. Each time a new log entry is necessary, write string to the file in java ?
What is the technique adopted to create an immutable class?
How do you find the independent variable?
What are the two types of streams offered by java 8?
What is split return?
What is the difference between reader/writer and inputstream/output stream?
Is 0 an irrational number?
Is ++ operator thread-safe in java?
When parseint method can be used?
Can I learn java in 3 months?
Can you extend main method in java?
What is integers and example?