Home / CSE MCQs / Java 8 :: Discussion

Discussion :: Java 8

  1. What is the Optional object used for?
  2. A.
    Optional is used for optional runtime argument
    B.
    Optional is used for optional spring profile
    C.
    Optional is used to represent null with absent value
    D.
    Optional means its not mandatory for method to return object

    View Answer

    Workspace

    Answer : Option C

    Explanation :



Be The First To Comment