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 |
If an application has multiple classes in it, is it okay to have a main method in more than one class?
Which class represents the socket that both the client and server use to communicate with each other?
Is it possible to instantiate the abstract class?
Can we use this () and super () in a method?
What is Session and cookies?Explain in detail with an example?
What is meant by distributed application? Why are we using that in our application?
which one is more efficient int x; 1. if(x==null) 2.if(null==x) state which one either 1 or 2?
what is the difference b/w static and final methods?
How does a try statement determine which catch clause should be used to handle an exception?
what is encapsulation in java? Explain
Can a constructor call the constructor of parent class?
What Is Query Throttling in java?