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 between null, nil, none and nothing?



Differentiate between null, nil, none and nothing?..

Answer / Rina Kumari

In Scala:nn- null: It is used for a reference to an object that has not been initialized.n- nil: It is used specifically with Option type to represent the absence of a value (similar to None).n- none: It is an instance of the Option[A] class which wraps a value of type A and provides methods for handling the absence of a value (similar to None but it can be used as a pattern matching option).n- nothing: It represents a type in Scala's Type Level Programming, denoting that there is no value of a given type.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Scala Interview Questions

What is the latest version of scala?

0 Answers  


Why is scala faster than java?

1 Answers  


What square measure the Scala variables?

1 Answers  


What is the result of x+y*z and why?

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  


What is the syntax for function declaration in scala?

1 Answers  


What does map in scala collection?

1 Answers  


Is scala good for machine learning?

1 Answers  


What are the Popular Scala-Based Frameworks to develop RESTful Web Services or REST API?

1 Answers  


Explain either/left/right design pattern in scala?

1 Answers  


What is the difference between :: and #:: in Scala? What is the difference between ::: and #::: in Scala?

1 Answers  


Explain pattern matching in scala through an example?

1 Answers  


Categories