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 are option, some and none in scala?



What are option, some and none in scala?..

Answer / Ankur Kumar Tomer

"Option in Scala is a data structure used for handling nullable values. It can have one of two states: Some(value) when it contains a value, or None when it does not contain any value. Some wraps the contained value, while None signals that the Option is empty."

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Scala Interview Questions

Tell the advantages of companion objects when used in scala?

1 Answers  


What is default access modifier in Scala?Does Scala have 'public' keyword?

1 Answers  


Explain different types of identifiers in scala?

1 Answers  


What does raw method in scala string interpolation?

1 Answers  


What do you mean by scala map?

1 Answers  


What is the best tool to develop Play/Scala applications to persist data in MongoDB NoSQL data store?

1 Answers  


What is Nothing in Scala? What is Nil in Scala? What is the relationship between Nothing and Nil in Scala?

1 Answers  


What is function composition in scala?

1 Answers  


List different types of literals available in scala?

1 Answers  


Differentiate between null, nil, none and nothing?

1 Answers  


Explain implicit classes with syntax?

1 Answers  


What is function currying in Scala?

1 Answers  


Categories