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

How do you implement tree mirroring in java?

1125


How a variable is stored in memory?

1049


If a class is declared without any access modifiers, where may the class be accessed in java programming?

1295


Is java owned by oracle?

1076


Why javac is not recognized?

1003


What is identifier in java?

1177


Is null a string in java?

1168


Is java a compiler?

1022


What is public static void main?

1152


Is java hard to learn?

965


Is java a super set of javascript?

1153


What is complexity and its types?

1103


do I need to use synchronized on setvalue(int)? : Java thread

1055


According to java operator precedence, which operator is considered to be with highest precedence?

1143


What is finally block?

1128