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 / chellammal

Implementing Serializable interface signifies that the
object can be persisted. Otherwise, when you try to
use writeObject, it will throw
java.io.NotSerializableException

Is This Answer Correct ?    15 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is a class subclass of itself?

1079


does java support pointers?

983


What is break and continue statement?

1084


What is difference between char array and string?

1106


what is abstract class in Java?

1111


When will you define a method as static?

1091


how come we know the object is no more used in the class?

6455


What is r in java?

1046


Why pointers are not used in java?

1122


Which way a developer should use for creating thread, i.e. Sub classing thread or implementing runnable.

922


What is the difference between numeric and integer?

1003


How do you sort arraylist in descending order?

1014


What is arrays sort in java?

956


If an object is garbage collected, can it become reachable again?

992


How many bits are used to represent unicode, ascii, utf-16, and utf-8 characters?

1091