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
Why are the objects immutable in java?
Does java have a compiler?
How do you add an arraylist to an array in java?
What is java full form?
What is oop principle in java?
What are multiple inheritances? Is it supported by java?
What is * argv?
Can we use string in switch case in java?
How many types of literals are there in JAVA?
What is the difference between abstract classes and interfaces?
What is meant by attribute?
What is append function?
What is ellipsis in java?
What is an class?
Is a boolean 1 bit?