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 stack example?

763


Does constructor be static?

763


Explain numeric promotion?

794


What is int lol?

850


What is string literal in java?

760


Give me an example of array and linked list? Where they can be used?

755


Can we serialize arraylist in java?

749


How we can declare a static variable?

859


Why map is used in java?

778


What is difference between c++ and java ?

856


Explain what do you mean by functional overloading in java?

763


Can we compare two strings in java?

755


Which way a developer should use for creating thread, i.e. Sub classing thread or implementing runnable.

696


Is 0 a real number?

778


Why do we need data serialization?

723