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

Can you extend more than one interface?

9 Answers  


What is considered an anti pattern?

0 Answers  


What is the statements?

0 Answers  


what is the difference between ArrayList and Vector

19 Answers   KPIT, Sasken, Satyam, Span Infotech, Wipro,


What is your platform’s default character encoding?

0 Answers  






What is scanner in java?

0 Answers  


Why does java doesnt suuport unsigned values?

0 Answers   ABC,


How define set in java?

0 Answers  


What are the types of arrays in java?

0 Answers  


Why runnable interface is used in java?

0 Answers  


Explain java code for recursive solution's base case?

0 Answers  


What is local variable and instance variable?

0 Answers  


Categories