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 |
Why do we declare a class static?
what happens when we add the objects morethan the size limit to a hashmap
How can we run a java program without making any object?
Is an empty arraylist null?
Can I uninstall java?
Can a final variable be manipulated in java?
How can an object be unreferenced?
Can we access private data outside of the class directly in java programming language? Why There is no runtime checking in java, which leads to access the private data directly outside of a class?
what is marker interface ? what is the necessity of it?
Why is sizeof not a function?
What is the biggest integer?
If a multi threaded Java program has started numerous number of threads, at any point in time how to know which thread is currently executing/running ?
7 Answers Accenture, College School Exams Tests, iFlex, NIIT,