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

How to change value in arraylist java?

0 Answers  


Can a boolean be null java?

0 Answers  


What are the characteristics of java?

0 Answers  


what are the design patterns in struts?

1 Answers  


What do you mean by byte code?

0 Answers  






What is a Hash Table? What are the advantages of using a hash table?

0 Answers   Ciena,


What is flush buffer?

0 Answers  


Can we declare a class as abstract without having any abstract method?

0 Answers  


Where can I find data structures question and answers with comprehensive working code written in Java

0 Answers   Amazon,


Can you extend singleton class?

0 Answers  


Why Java is not pure Object Oriented language?

0 Answers  


What are synchronized methods and synchronized statements in java programming?

0 Answers  


Categories