what is the use of Clonable,and serializable interface?
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 |
What is a parameter in java?
What are different type of access modifiers?
What is exception in java?
What is mvc in java?
What is a map in java?
How does enum work in java?
What is casting?
What is difference between path and classpath variables?
Can we have 2 main methods in java class?
What is keyset in java?
Why java applets are more useful for intranets as compared to internet?
Explain different ways of passing arguments to sub-routine?