[java] What is the 'instanceof' operator used for in Java?