Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


What is the equivalent construct of Scala’s Option in Java SE 8? What is the use of Option in Scala?



What is the equivalent construct of Scala’s Option in Java SE 8? What is the use of Option in ..

Answer / 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

More Scala Interview Questions

What is guard in Scala’s for-comprehension construct?

1 Answers  


Does a Companion object access private members of it’s Companion class in Scala?

1 Answers  


What are the popular JVM Languages available now?

1 Answers  


What is the best Scala style checker tool available for Play and Scala based applications?

1 Answers  


What is Range in Scala? How to create a Range in Scala?

1 Answers  


What is Diamond Problem? How Scala solves Diamond Problem?

1 Answers  


What is object in Scala? Is it a singleton object or instance of a class?

1 Answers  


What is an Anonymous Function In Scala? What is a Function Literal in Scala? What are the advantages of a Anonymous Function/Function Literal in Scala?

1 Answers  


What is a stream in scala?

1 Answers  


What is the use of Auxiliary Constructors in Scala?Please explain the rules to follow in defining Auxiliary Constructors in Scala?

1 Answers  


Like Hibernate for Java-based applications, What are the Popular ORM Frameworks available to use in Play/Scala based applications?

1 Answers  


Mention Some keywords which are used by Java and not required in Scala? Why Scala does not require them?

1 Answers  


Categories