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 a module function?

1104


What is a programming object?

1109


why are wait(), notify() and notifyall() methods defined in the object class? : Java thread

990


Do we need to manually write Copy Constructor?

1033


What is the difference between final, finally and finalize()?

1156


State the difference between creating string as new () and literal.

1119


Differentiate between == and equals().

1049


What is the association?

988


What are the rules for variable declaration?

969


What exactly is a .class file?

1047


What is instance synchronization?

1048


Does list allow duplicates in java?

931


What are the 6 functions?

975


What is autoboxing in java?

1066


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

1009