What is Marker interface in java? and what is clone?
Answer Posted / kavya
Use of marker interface in java
Marker Interfaces are used to indicate something to compiler/JVM. If JVM see that a class is a object of Marker Interface then it will perform some special operation. Take an example with Serializable, Clonnable marker interface, if JVM see a Class is Serialized/Clonnable then It will do some special operation on it, similar way if JVM sees one Class is implemented custom marker interface which is created by ourself then the JVM do some special operation. How it’d do the special operation
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is javac_g?
What is classes in java?
What is array pointers ?
Is double bigger than float?
What is the function of character?
What is the technique adopted to create an immutable class?
Why volatile is used in java?
What is type inference in java8?
What is the final keyword denotes?
We are seeing so many videos/audios as many web sited. But question is these videos or audios are stored in Databases ( Oracle, Mysql, Sybase,... ) or stored any file directory from there they will give the link for that? Pls explain and give sample code to achieve this one? Thanks, Seenu.
If you are given the name of the function at run time how will you invoke the function?
What are the uses of java?
what is enumset?
What is abstraction in java?
How do I get the | symbol on my keyboard?