what is the use of Clonable,and serializable interface?



what is the use of Clonable,and serializable interface?..

Answer / 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

More Core Java Interview Questions

Can we override compareto method?

0 Answers  


In how many ways we can create threads in java?

0 Answers  


how to connect one jsp page to another jsp page????

6 Answers   IIT, Symphony,


Why do we use public static with the main function in Java?

13 Answers   College School Exams Tests, Infosys,


who can i handle multiple client in RMI

0 Answers  






Describe the term diamond problem.

0 Answers  


What is "Java Native Interface" and how to use it?

1 Answers   IBM,


What is a dot notation?

0 Answers  


how to make a un-checked exception as a checked exception one.

2 Answers  


What is the meaning of course?

0 Answers  


What do you mean by an interface in java?

0 Answers  


Is it necessary that each try block must be followed by a catch block?

0 Answers  


Categories