Do I have to check the null when I write the instance of?

Asked 2 years ago, Updated 2 years ago, 20 views

If I do a null instance of Some Class, will it be a return false or a null Pointer Exception?

java

2022-09-21 18:47

1 Answers

You don't have to check the null. If x is null when x instance of Some Class, false returns.


2022-09-21 18:47

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.