From e64c24c23da0487ef38233eafab62a0bdf8e7a4f Mon Sep 17 00:00:00 2001 From: Karen Tobo Date: Wed, 14 Nov 2018 08:29:16 -0700 Subject: [PATCH] correct typo in instanceof (#24332) --- guide/english/java/basic-operations/index.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/guide/english/java/basic-operations/index.md b/guide/english/java/basic-operations/index.md index c9702a437a..41ca98bf2d 100644 --- a/guide/english/java/basic-operations/index.md +++ b/guide/english/java/basic-operations/index.md @@ -38,10 +38,10 @@ False Condition: int y = (x == 10) ? 5 : 9; // y will equal 9 since the expression x == 10 evaluates to false ``` -The instance of operator is used for type checking. It can be used to test if an object is an instance of a class, a subclass or an interface. General format- +The `instanceof` operator is used for type checking. It can be used to test if an object is an instance of a class, a subclass or an interface. General format- *object **instance** of class/subclass/interface* -Here is a program to illustrate instanecof operator: +Here is a program to illustrate the `instanceof` operator: ```Java Person obj1 = new Person(); Person obj2 = new Boy();