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


Please Help Members By Posting Answers For Below Questions

What is javac_g?

761


What is classes in java?

707


What is array pointers ?

805


Is double bigger than float?

744


What is the function of character?

766


What is the technique adopted to create an immutable class?

773


Why volatile is used in java?

750


What is type inference in java8?

795


What is the final keyword denotes?

867


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.

1707


If you are given the name of the function at run time how will you invoke the function?

887


What are the uses of java?

779


what is enumset?

797


What is abstraction in java?

821


How do I get the | symbol on my keyboard?

784