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 we nested try statements in java?
How many bits are in a sentence?
How do listeners work?
What is the difference between actual and formal parameters?
What purpose do the keywords final, finally, and finalize fulfill?
Write a program to find the greatest of three numbers in java?
What is the purpose of finalization in java programming?
Is java good for beginners?
What is java regex?
How do you include a string in java?
What is the difference between error and an exception?
What is the flag in java?
What is the main purpose of serialization in java?
What is application tier?
Explain the use of sublass in a java program?