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 package private scope in java?

523


What do you mean by compiler?

571


What is the difference between dom and sax parser in java?

521


What is void class in java?

518


What one should take care of, while serializing the object?

478






What are different types of encoding?

572


4.1 Supply contracts (in the form of comments specifying pre- and post conditions) for the enqueue() method of the LinkedQueue class given in the Appendix. (2) 4.2 Let Thing be a class which is capable of cloning objects, and consider the code fragment: Thing thing1 = new Thing(); //(1) Thing thing2 = thing1; //(2) Thing thing3 = (Thing) thing1.clone(); //(3) Explain how the objects thing2 and thing3 differ from each other after execution of the statements. (

1404


What is the final field modifier?

535


What advantage do java's layout managers provide over traditional windowing systems?

535


What is the collections api in java programming?

544


What is difference between fail-fast and fail-safe?

580


What are heap memory and stack memory and what are memory tables.

503


What is qualitative variable?

514


What is passed by reference and pass by value ?

574


What are the difference between composition and inheritance in java?

504