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...

how a marker interface gets its functionality and when we
implements a marker interface how it got invoked

Answer Posted / yadav

Serializability of a class is enabled by the class implementing the java.io.Serializable interface. Classes that do not implement this interface will not have any of their state serialized or deserialized. All subtypes of a serializable class are themselves serializable. The serialization interface has no methods or fields and serves only to identify the semantics of being serializable.

Classes that require special handling during the serialization and deserialization process must implement special methods with these exact signatures:

private void writeObject(java.io.ObjectOutputStream out)
throws IOException
private void readObject(java.io.ObjectInputStream in)
throws IOException, ClassNotFoundException;

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the constructor?

1054


What is the difference between conversation & casting?

1042


What is method overloading in JAVA? Why is it not present in C ?

1102


Is it possible to override the main method?

979


What are the wrapped, classes?

1052


A non-static inner class may have object instances that are associated with instances of the class’s outer class. A static inner class does not have any object instances.

1014


Write a program to print all permutations of string?

1115


What is the use of bufferedreader?

996


How would you convert bytes to string?

985


How can we pass argument to a function by reference instead of pass by value?

1111


How to find the index of the largest number in an arraylist java?

1034


How to obtain a performance profile of java program

1031


Can we clone singleton object?

1064


What are the basic concepts of OOPS in java?

1033


What is the static keyword?

1086