Page 1 of 1

About Question enthuware.ocpjp.v17.2.3716 :

Posted: Sun Feb 23, 2025 3:53 am
by raphaelzintec
so the question is: What of the following options illustrates correct usage of instanceof with pattern matching?

but we agree that its not good usage of equals? because we dont check titles

Re: About Question enthuware.ocpjp.v17.2.3716 :

Posted: Sun Feb 23, 2025 5:16 am
by admin
Yes, technically correct but not good :)
It may be good business logic wise though ... isbn is unique for a book ;)