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 the use of Clonable,and serializable interface?

Answer Posted / amit singh

serialzable and cloneable interface both are marker
interface
Cloneable interface:
if any class implements this interface .so this interface
its just a indicator or marker that a particular class
going touse clone() of the Object class to field tio field
copy of the instance ofthe particular class.


Serializable:
its also the interface .if any class implements it so means
that this particular class object convert in byte and going
to save in a locakl disk
and also its useful to send object in a Byteform to the
network.
and at the another network it will convert from byte to
Object of particular type.

Is This Answer Correct ?    48 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Does java return by reference?

951


What is var keyword ?

1126


What is a numeric literal?

994


How we can run a jar file through command prompt in java?

911


What is an object class?

960


How to read and write image from a file ?

993


Why is stringbuffer faster than string?

869


Why char array is favored over string for the storage of passwords?

997


What do you mean by hashing?

1046


What are java annotations?

1067


'A class is a template for an object' explain this statement.

989


What are keywords in programming?

944


What are selection structures?

936


What is public static void main?

1038


If an object reference is set to null, will the garbage collector immediately free the memory held by that object?

1082