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
hr interview how many minutes asking question
What are the advantages of functions?
Explain about procedural programming language or structured programming language and its features?
Write a program to print 15 random numbers using foreach of java 8?
What is a list in java?
What is the current version of java?
Where is java located?
Explain, java is compatible with all servers but not all browsers?
what do you mean by java annotations?
What is null object in java?
What is the full form of jpeg?
What does it mean to be immutable?
What causes memory leak in java?
What is the difference between final, finally and finalize()?
What is the public field modifier?