How does serialization work

Answer Posted / bindhu

The class whose instances are to be serialized
should implement an interface Serializable. Then pass the
instances to the ObjectOutputStream which is connected to a
FileOutputStream. This will save the object to a file...
When an object ios serialized, all the included
objects are also serialized along with the original object.

Is This Answer Correct ?    4 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the use of arraylist class in java?

755


what state does a thread enter when it terminates its processing? : Java thread

809


Can a static method be final?

753


Why is a constant variable important?

679


Is java type safe?

730


What is meant by object oriented programming – oop?

747


What is unicode used for?

805


Explain the selection sort algorithm?

842


Why null value is used in string?

753


What are unchecked exceptions in java?

809


what is bmg file and how to create that files?what will it contailn?

2126


Are there structures in java?

730


Write a program in java to calculate the difference between the sum of the odd level and even level nodes of a binary tree.

737


What are the topics in core java?

773


How do you download stubs from Remote place?

1527