Why we need to serialize the object
Answer Posted / sandeep jaisawal
For an example,if you are suppose to send some data from
obe JVM to other JVM, in that case state of ojects are not
known and will not persist if you dont serialize the object
and sent over a network.
because you allocate seperate heap for seperate JVM.
So you have to tell JAVA that please treat my object, in a
different way because i have make them serialised...
Once the data(object) is serialised, you cant send it any
wr like, write in to DB,othere JVM,files etc. and later
point of time you can deserialise them and you can the same
state of the object.
Hope this help.
Sandeep j
| Is This Answer Correct ? | 39 Yes | 3 No |
Post New Answer View All Answers
Explain the meaning of java applet.
What is a constructor overloading in java?
Can you have two constructors in java?
What is a literal coding?
How do you write a scanner class in java?
What is the buffer limit?
What are annotations in java?
What is java instanceof operator?
what is instanceof operator used in java?
Name some classes present in java.util.regex package.
What is the preferred size of a component in java programming?
What is the different between get and post?
Is java based on c?
what is enumset?
What is default locale java?