How is the marker interface used in Java?



How is the marker interface used in Java?..

Answer / Shobhit Johri

A marker interface is used in Java by simply naming a class as an implementer of that interface. For example, the java.io.Serializable interface is a marker interface that indicates a class can be serialized and deserialized.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

what is request processor?

1 Answers   Virtusa,


what is business objects?

2 Answers  


Differentiate between == and equals().

1 Answers  


What is map in java?

1 Answers  


Can a Byte object be cast to a double value?

3 Answers   KO,


What is an event?

2 Answers  


What is methods and methodology?

1 Answers  


Can you override private or static method in java?

1 Answers  


What is the buffer limit?

1 Answers  


What is the abstract class?

1 Answers  


How to add panel to a Frame?

5 Answers  


Explain why wait(), notify() and notifyall() methods are in object class rather than in the reading class?

1 Answers  


Categories