In Serialization, whether you will use Static variables?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a qms manual?

541


How can you avoid serialization in child class if the base class is implementing the serializable interface?

635


What do you mean by constructor?

546


What is the function of character?

523


Why is an interface be able to extend more than one interface but a class can’t extend more than one class?

699






What does it mean that a class or member is final?

559


What is a consumer in java?

564


What is null object in java?

572


What is the public field modifier?

542


What is lambda programming?

493


Why do we use threads in java?

561


What is numeric data type?

526


What are exception handling keywords in java?

604


Is integer a class?

563


What are the difference between composition and inheritance in java?

510