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...

What is deserialization and how do we do deserialization?

Answer Posted / javamasque

Here is updated answer
Deserialization is a process of retrieving object from byte stream. We have to fallow below steps for de-serialization
1. The object to be serialized need to implement java.io.Serializable interface.
2. It will use Java’s default serialization mechanism.
3. Generate serial version id for that serializable object.
4. Generate serial version UID for all super classes in hierarchy (all super classes if any) otherwise the properties of all its super classes will be assigned to its default value during deserializtion.
5. ObjectInputStream is used to read [readObject()] object.
6. FileInputStream is used to read from flat file.
7. The flat file extension should be (<file-name>.ser)

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a programming object?

1081


Is a method a function?

1038


What is the purpose of javac exe?

1079


What is method overloading with type promotion?

1247


What is instanceof keyword?

1201


How do you remove duplicates in java?

996


what is optional in java 8?

1040


What is the use of runnable interface?

1154


What are the different types of constructor?

970


What happens when you add a double value to a string?

973


When we serialize an object does the serialization mechanism saves its references too?

1004


When is the finalize() called?

1161


In the below example, how many string objects are created?

1032


How do you check if an arraylist is not empty?

1099


If you are given the name of the function at run time how will you invoke the function?

1122