About Question enthuware.ocpjp.v17.2.3716 :

Help and support on OCA OCP Java Programmer Certification Questions
1Z0-808, 1Z0-809, 1Z0-815, 1Z0-816, 1Z0-817

Moderator: admin

Post Reply
raphaelzintec
Posts: 167
Joined: Sun Apr 21, 2024 10:43 am
Contact:

About Question enthuware.ocpjp.v17.2.3716 :

Post 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

admin
Site Admin
Posts: 10384
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

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

Post by admin »

Yes, technically correct but not good :)
It may be good business logic wise though ... isbn is unique for a book ;)

Post Reply

Who is online

Users browsing this forum: No registered users and 9 guests