is there a Java equivalent to null coalescing operator (??) in C#? [duplicate]

This question already has answers here: How to get the first non-null value in Java? (13 answers) Closed 4 years ago. The community reviewed whether to reopen this question 5 months ago and left it closed: Original close reason(s) were not resolved Is it possible to do something similar to the following code in Java … Read more