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
How do you compare values in java?
What is an infinite loop?
What is main difference between variable and constant?
What are the important methods of java exception class?
Break statement can be used as labels in java?
How will you print number in reverse (descending) order in BST.
What is the transient keyword?
What is difference between arraylist and list in java?
What are inbuilt functions?
What is a void method?
What is predicate in java?
How will you reverse a link list without using recursion?
What is parseint?
Is java still relevant?
What is ‘is-a ‘ relationship in java?