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 pangram in java?
Differentiate between a constructor and a method? Can we mark constructors final?
can we create object for static class in java
14 Answers IAP Company, IBM, Marlabs, mPortal, TCS,
How do I stop concurrentmodificationexception?
How to add panel to a Frame?
What is static in java?
Which is better ascii or unicode?
How to connect to a remote database using Applet?
Can we have multiple classes in a single file?
What is hash method?
when,where and how to use abstract class and interface
Suppose if we have variable ' I ' in run method, if I can create one or more thread each thread will occupy a separate copy or same variable will be shared?