What is a serializable interface?

Answer Posted / sujanya

Serializable interface is a marker interface.This interface
is not having any methods,if u implement the serialization
to class ,then jvm will take care about the functionality.
when we are using the serialization is if u want to store
the data in persistent state.and u r passing the data
through the network then u must be use the srialization
intreface.
The process of writing the state of an object into a byte
stream is called serialization.

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Define iterator and methods in iterator?

743


Write a program to show whether a graph is a tree or not using adjacency matrix.

844


Difference between string s= new string (); and string s = "abv";?

984


Explain importance of finally block in java?

800


What is main in java?

783


Where local and global variables are stored?

789


Can we cast any other type to boolean type with type casting?

738


What is passing value java?

703


Is ++ operator thread-safe in java?

883


How can you handle java exceptions?

729


Why hashcode is used in java?

686


Can we sort array in java?

718


What does flagged out mean?

796


What is the difference between object oriented programming language and object based programming language?

759


What does void * mean?

718