You've successfully subscribed to The Poor Coder | Hackerrank Solutions
Great! Next, complete checkout for full access to The Poor Coder | Hackerrank Solutions
Welcome back! You've successfully signed in.
Success! Your account is fully activated, you now have access to all content.
Enable dark mode
Java Instanceof keyword
Hackerrank Java Instanceof keyword Solution
The Java instanceof operator is used to test if the object or instance is an instanceof the specified type. In this problem we have given you three classes in the editor: Student classRockstar classHacker classIn the main method, we populated an ArrayList with several instances of these classes. count method