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

instanceof operator
subjectfact 
instanceof operatorhas example sylvester instanceOf Dog //returns false
fido instanceof Dog //returns true
added by: JK, 2001-10-19 11:36:57.0
has purpose to return true if the instance is either a direct instance of the given class or of a subclass of that classadded by: JK, source: On To Java, 2001-10-19 11:36:57.0
is a subtopic of Operators2001-10-19 11:36:58.0
is a kind of binary operatoradded by: JK, source: On To Java, 2001-10-19 11:36:58.0
binary operatoruses an infix notation2001-10-19 11:36:10.0
operatorevaluates to its result2001-10-19 11:37:36.0
has precedence2001-10-19 11:37:36.0
is part of an expression2001-10-19 11:37:36.0
is evaluated before another operator with lower precedence2001-10-19 11:37:36.0
returns a value called its result2001-10-19 11:37:37.0
syntactic unithas syntax rule
bold = mandatory
italic = non-terminal
normal font = optional
2001-10-19 11:38:04.0