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 need to implement Serializable interface (with
no methods) for objects which are to be serialized ?
We can write our own functionality which writes objects to
streams then why we need to implement and tell JVM that
which objects can be serialized.

Answer Posted / rohit

Serializable concept is related with the state persisitence
of the object.
Example:---
When u send the some object on internet it needs to be
serialized bcz before sending the object it first converted
in to byte & desrerialization is the process is used to get
it back in its original form

Is This Answer Correct ?    6 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What about interrupt() method of thread class ?

1124


How do you add an element to a hashset in java?

1058


What are different types of multitasking?

1006


Is an integer an object?

1031


Explain about method local inner classes or local inner classes in java?

1069


What is the best way to findout the time/memory consuming process?

1074


What are the features of java?

1145


How is garbage collection controlled?

1225


What a static class can contains?

1198


How does indexof work?

1011


What will be the default values of all the elements of an array defined as an instance variable?

1079


Are static members inherited to sub classes?

1186


What is a pattern what is an anti pattern?

1033


Which are different kinds of source code?

1166


Name few java.lang classes introduced with java 8 ?

1046