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 |
Which programming language is best in future?
What is the use of volatile in java?
can we access the method of class without creating the object of the class
Explain about version control?
What is a treeset class?
int a=1,b=10; System.out.println(a+b--);
What are the 6 mandatory procedures for iso 9001?
what is difference between length and length()?
What is floor math?
Difference between error and exception
How can the checkbox class be used to create a radio button?
How infinite loop is declared?