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

What are inner classes or non static nested classes in java?

1158


Is space a char?

905


Which sorting is used in arrays sort in java?

1065


What is the use of predicate in java 8?

936


What is string intern in java?

1006


Is array a class?

911


What is jit compiler ?

967


Can we use catch statement for checked exceptions when there is no chance of raising exception in our code?

1019


what is deadlock? : Java thread

989


How do you create a sop?

984


What is public/private protected in java?

1025


Is vector synchronized in java?

975


How many threads does a core java have?

1041


How do you remove duplicates in java?

996


Can a variable be local and static at the same time?

984