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

Why Scala is better than Java? What are the advantages of Scala over Java (Java 8)? Compare to Java What are the major advantages or benefits of Scala?

1 Answers  


What is scala best used for?

1 Answers  


What do you mean by foldleft in scala?

1 Answers  


What is throw in scala?

1 Answers  


What is function composition in scala?

1 Answers  


What is the difference between Case Object and Object(Normal Object)?

1 Answers  


What is the syntax for function declaration in scala?

1 Answers  


mention the types of variables in scala? And what is the difference between them?

1 Answers  


What is the difference between apply and unapply methods in scala?

1 Answers  


What is list in scala collection?

1 Answers  


What do you understand by tail recursion in scala ?

1 Answers  


What is method overloading in scala?

1 Answers  


Categories