APShai, You are right, it is true what you say, and thanks for share it. I think if the performance is not important, Optional could be a good way, helping to reduce the size of the code and a interesting design pattern to improve the maintainability.Reply·Article·Nov 9, 2021·Dear Student, how to avoid null verifications in Java