---
title: "Marker interface in Java ?"  
description: "Marker interface in Java ?"  
author: "Prakash nidhi Verma"  
published: 2018-06-11  
updated: 2020-09-20  
canonical: https://www.mindstick.com/interview/23422/marker-interface-in-java  
category: "java"  
tags: ["java", "interface", "gui"]  
reading_time: 1 minute  

---

# Marker interface in Java ?

Marker interface in java : It means we giving some extra functionality to the our class by extending than create a marker interface. Functionality will be different from marker interface to per interface .If JVM finds any user defined class was implemented any marker interface it will do some special operation on that object. In java we have the following main marker interfaces as shown below: 1)Searilizable interface 2)Cloneable interface 3)Remote interface 4)ThreadSafe interface \

```
Object x = "mindstick";if (x instanceof Serializable) {}
```

writeObject(Serializable);\
Happy Coding :)

## Answers

### Answer by Prakash nidhi Verma

Marker interface in java : It means we giving some extra functionality to the our class by extending than create a marker interface. Functionality will be different from marker interface to per interface .If JVM finds any user defined class was implemented any marker interface it will do some special operation on that object. In java we have the following main marker interfaces as shown below: 1)Searilizable interface 2)Cloneable interface 3)Remote interface 4)ThreadSafe interface \

```
Object x = "mindstick";if (x instanceof Serializable) {}
```

writeObject(Serializable);\
Happy Coding :)


---

Original Source: https://www.mindstick.com/interview/23422/marker-interface-in-java

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
