pe is also problematic if the class needs to be
  <code>Serializable</code>, as <code>java.util.Optional</code> is not serializable.</p>
<p>Example:</p>
<pre><code>
  class MyClass {
    Optional&lt;String&gt; name; // Optional field

    // Optional parameter
    void setName(Optional&lt;String&gt; name) {
      this.name = name;
    }
  }
</code></pre>
<!-- tooltip end -->
</body>
</html>