Examveda

What is the purpose of the `instanceof` operator in Java?

A. To create JavaBeans

B. To execute SQL queries

C. To define JavaBean properties

D. To check if an object is an instance of a particular class or interface

Answer: Option D


This Question Belongs to Java Program >> Miscellaneous In Java

Join The Discussion

Related Questions on Miscellaneous in Java