Используя оператор instanceof или метод isInstance() класса Class.
instanceof
isInstance()
Class
java
Register or sign in to get access to full answers for all questions from the question bank.