Why we need to serialize the object

Answer Posted / balaji

when ever an object's state needs to be saved to retrieve it
after some time we need to serialize the object.
Serialization is the process of writing the state of an object
to the stream.
The state of an object will be available in instance variables.

Is This Answer Correct ?    27 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does @override mean?

530


Why do we need wrapper class?

535


What is the functionality of the stub?

571


In a program, initializing an array of 100 KB is throwing an out of memory exception while there is 100 MB of memory available. Why?

572


Will set allow duplicates in java?

501






What is array sorting in java?

553


What is the purpose of using javap?

614


Is space a char?

528


Which sorting is best in java?

534


How will you reverse a singly-link list?

594


What is the meaning of variables in research?

528


What is the meaning of nullable?

574


what is singleton class in java?

619


I want to print “hello” even before main is executed. How will you acheive that?

657


List down the methods and interfaces of collection class in java.

538