Java   View all facts   Glossary   Help
syntactic unit > symbol > operator > binary operator > instanceof operator
Next binary operator|    Upbinary operator    Previous binary operatorcaret   

instanceof operator comparison table
Subject have example has definition have purpose is a kind of
binary operator An operator that has 2 argumentsto perform a simple function of 1 to 3 argumentsoperator
instanceof operatorsylvester instanceOf Dog //returns false
fido instanceof Dog //returns true
 to return true if the instance is either a direct instance of the given class or of a subclass of that classbinary operator

Next binary operator|    Upbinary operator    Previous binary operatorcaret