What is the equivalent construct of Scala’s Option in Java SE 8? What is the use of Option in Scala?
Answer Posted / Pankaj Som
["Java SE 8 has no direct equivalent to Scala's Option. Option is a type-safe null object representation that allows you to deal with possibly missing values without using Null. In Scala, Option is used to represent a value that may or may not be present. An Option[A] can have two possible states: Some(value) when the value A is present and None when it is absent."]
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers