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

How will you override default serialization mechanism in java

Answer Posted / sharmila

Serializable is a marker interface. But you may wish to
control on how an object is serialized instead of using the
default mechanism. In such case add implementations of the
readObject() and/or writeObject() methods to the class being
serialized and override default serialization mechanism.

Also, instead of using Serializable interface,
Externalizable interface can be used

Is This Answer Correct ?    4 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is arraylist e in java?

1014


What is string in java is it a data type?

960


Why we go for collections in java?

928


Why set is used in java?

964


What is a line break?

979


What is the purpose of using javap?

1047


Whats the difference between notify() and notifyall()?

980


Difference between predicate, supplier and consumer ?

998


What are the procedures?

1012


Is string thread safe in java?

1038


What is the difference between superclass and subclass?

1094


What restrictions are placed on method overriding in java programming?

939


What is a java string?

1005


What is type conversion in java?

990


How many types of interfaces are there?

993