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


Please Help Members By Posting Answers For Below Questions

Which data type is class in java?

549


What is the use of accept () method in java?

606


Is array dynamic in java?

479


What is identifier with example?

567


Is java ee a framework?

518






What is the byte range?

578


How is the marker interface used in Java?

606


which class is the wait() method defined in? : Java thread

521


Why there is no call by reference in java?

492


Where is singleton pattern used?

521


Where are the card layouts used?

611


What is methods and methodology?

529


What is a variable and constant?

544


How do you clear a list in java?

598


Tell me are there implementations for sorting and searching in the java libarary?

594