Q:

Which method can be used to check null on an Optional variable in Java 8

0

Which method can be used to check null on an Optional variable in Java 8


  1. isPresent()
  2. isNullable()
  3. sPresentable()
  4. isNotNull()

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

Correct Answer:

isPresent()

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Core Java Multiple Choice Questions And Answers

This question belongs to these collections

Similar questions


need a help?


find thousands of online teachers now
Which of these does Stream map() operates on... >>
<< In Java 8 Interfaces, methods can be:...