In Serialization, whether you will use Static variables?

Answers were Sorted based on User's Feedback



In Serialization, whether you will use Static variables?..

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

In Serialization, whether you will use Static variables?..

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

In Serialization, whether you will use Static variables?..

Answer / krishna

We cannot serialize the static variables

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More Core Java Interview Questions

INTERVIEW QUESTION FOR ANDROID

0 Answers  


Describe method overriding

0 Answers  


What is the default execution method in java?

0 Answers  


Explain java coding standards for methods?

0 Answers  


Can java list be null?

0 Answers  






What is the largest data type in java?

0 Answers  


What is java string pool?

0 Answers  


Adapter classes?

3 Answers  


What is t type java?

0 Answers  


What are the four versions of java?

0 Answers  


what is the use of Clonable,and serializable interface?

1 Answers  


Why is serialization required?

0 Answers  


Categories