the instanceof keyword is a test operand that refers to an object of given type or not and is a binary expression that produces a boolean result for <expression> instanceof <type> example:
string s = "carrot";
point p = new point (8,1);
s instanceof string true
s instanceof point false
p instanceof string false
p instanceof point true
"hello" instanceof string true
null instanceof point false

Popular posts from this blog

ch11 review silberschatz operating systems concepts essentials 2nd ed