what is the use of Clonable,and serializable interface?
Answer Posted / amit singh
serialzable and cloneable interface both are marker
interface
Cloneable interface:
if any class implements this interface .so this interface
its just a indicator or marker that a particular class
going touse clone() of the Object class to field tio field
copy of the instance ofthe particular class.
Serializable:
its also the interface .if any class implements it so means
that this particular class object convert in byte and going
to save in a locakl disk
and also its useful to send object in a Byteform to the
network.
and at the another network it will convert from byte to
Object of particular type.
| Is This Answer Correct ? | 48 Yes | 5 No |
Post New Answer View All Answers
What is the difference between static binding and dynamic binding?
What is the function of log?
Why there are some null interface in JAVA? What does it mean? Give some null interface in JAVA?
Difference between string s= new string (); and string s = "abv";?
What language is java written?
What is a nonetype?
Difference between start() and run() method of thread class?
How hashset works internally in java?
What is the difference between arraylist and hashset in java?
What is cr keyboard?
What are the basic interfaces of java collections framework?
What is linked hashset and its features?
Give few difference between constructor and method?
How do I know if java is installed?
What are different types of states exist for a thread?