---
title: "What is an instanceof operator in java?"  
description: "What is an instanceof operator in java?"  
author: "Sumit Kesarwani"  
published: 2014-04-10  
updated: 2020-09-23  
canonical: https://www.mindstick.com/interview/1950/what-is-an-instanceof-operator-in-java  
category: "java"  
tags: ["java"]  
reading_time: 1 minute  

---

# What is an instanceof operator in java?

Instanceof is an object reference operator and returns true if the object on the left-hand side is an instance of the glass given to the right hand side. This operator allows determining whether the object belongs to a particular class or not.

## Answers

### Answer by Sumit Kesarwani

Instanceof is an object reference operator and returns true if the object on the left-hand side is an instance of the glass given to the right hand side. This operator allows determining whether the object belongs to a particular class or not.


---

Original Source: https://www.mindstick.com/interview/1950/what-is-an-instanceof-operator-in-java

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
