✅ Перевірена відповідь на це питання доступна нижче. Наші рішення, перевірені спільнотою, допомагають краще зрозуміти матеріал.
Which of the following statements about instanceof are correct?1) instanceof is a binary operator.2) Assume that class A implements interface B, B b = new A(). Then, the expression "b instanceof A" is true.3) The following is given: B b = new A(). Then, the expression "b instanceof B" is true.4) Assume that A is a class and the variable a is of type A (A a;). The expression "a instanceof A" creates an instance of class A.