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

What is abstract class? Explain

976


What is entry set in java?

1027


What does @override mean?

1106


What is regex in java?

900


Explain the JDB in depth & command line.

959


What does localhost mean?

885


Why arraylist is not synchronized in java example?

970


Why do we declare a class static?

1049


How many types of string data types are there?

1019


Is stringwriter thread safe?

939


What is role of void keyword in declaring functions?

992


Why is java logo a cup of coffee?

1073


how to write a program for sending mails between client and server

2021


Which method must be implemented by all threads?

1194


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

998