Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

Difference between final and effectively final ? Why is effectively final even required ?

985


When is the finally clause of a try-catch-finally statement executed?

1062


Is string a wrapper class?

1014


Can a class have a static inner class?

1080


What is the benefit of lambda expressions?

1057


What is difference between calling start() and run() method of thread?

1127


Can a constructor be private and how are this() and super() method used with constructor?

997


What is subsequence of a string?

1095


Why java is used everywhere?

1007


What is a 16 bit word?

995


What is parsing and its types?

1099


What do heavy weight components mean in java programming?

949


How will you serialize a singleton class without violating singleton pattern?

1952


Can a abstract class be defined without any abstract methods?

999


What is java abstraction with example?

1061