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...


Differentiate nil, null, none, and nothing in scala.



Differentiate nil, null, none, and nothing in scala...

Answer / Jasvant Singh

{"Nil": ["Nil is an empty list or empty sequence in Scala. It's a singleton object that extends the abstract class EmptyList."], "Null": ["Null is a reference value representing no object instance in Scala. In other words, it's used when there is no value at all."], "None": ["None is an instance of the Option type, which represents either a value or no value (i.e., absence of a value). It is used in functional programming to handle cases where a function may return no result."], "Nothing": ["Nothing is a subtype of all other types in Scala and represents the unreachable state of a program. It signals that something went wrong during execution."]}

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Scala Interview Questions

What is this in scala?

1 Answers  


What is string interpolation in scala?

1 Answers  


Explain what is unit in scala?

1 Answers  


What is a function literal in scala?

1 Answers  


What is bitset in scala?

1 Answers  


Is scala easy to learn?

1 Answers  


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

1 Answers  


What is a trait mixins in scala?

1 Answers  


What do you mean by “type inference” in scala?

1 Answers  


Explain how to create arrays?

1 Answers  


What is listset in scala collection?

1 Answers  


What is the difference between Java’s 'If..Else' and Scala’s 'If..Else'?

1 Answers  


Categories