In Java, the instanceof operator is used to
- Atest whether an object is an instance of a particular class or interface, and it returns a boolean value
- Bcreate a new instance of a class
- Ccompare the contents of two strings
- Dfind the number of instances of a class that exist in memory
Correct answer: A