title: is there a Java equivalent to null coalescing operator (??) in C#?
body: <p>Is it possible to do something similar to the following code in Java</p>
  
  <pre><code>int y = x ?? -1;
  </code></pre>
  
  <p><a href="https://stackoverflow.com/a/446839">More about <code>??</code></a></p>