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
Can a boolean be null java?
Write a program to calculate factorial in java?
What is t in parametric equations?
What is communist flag?
Why do people says “java is robust”?
Which is illegal identifier in java?
What are internal variables?
Is a string literal?
What is indexof?
What are three advantages of using functions?
How are multiple inheritances done in Java?
What data type is true or false?
What is data type in java?
Why do we need data serialization?
How do I write a self declaration?