There is another interesting library for null-safety in Java called JSpecify: jspecify.dev/docs/user-guide
But its not listed above as option because it is not sufficiently used yet.
The correct answer is C.
The expression 'p2 instanceof Point(int x, int y) point' not only matches p2 with Point to create a variable point, but also deconstructs it into variables x and y. To do that it uses accessor methods x() and y() and therefore they get executed.
Optional: what do you think about it?Choose from:
1. It has helped improve null-safety/ readability
2. It could have been designed better
3. Both
For any of the choices, if you want to provide arguments, the comments section is open.
Preview features are provided with a JDK release for developers to experiment with them and provide feedback. Have you ever used preview features for any JDK release?
Spring Data JDBC is not a complete ORM implementation and JOOQ is not ORM. But these are included as they are popular choices for interacting with databases.
Which option will you choose to implement this: If user has an account then they get 5% discount, otherwise they don’t get any discount. (Select in poll below.)