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
Difference between comparator and comparable in java?
Why stringbuffer is faster than string?
What type of value does sizeof return?
What is an eror in java?
What is the difference between class forname and new?
What is the range of a character variable?
How do you get length in java?
How many bytes is a string java?
Is main a keyword in java?
What are the restrictions that are applied to the java static methods?
what is difference between equals and ==?
What does substring mean?
Describe the term diamond problem.
Why java strings are immutable in nature?
What 5 doubled?