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 unit in scala?



What is unit in scala?..

Answer / Arti Pal

Unit (written as `()`) in Scala represents a value that has no data associated with it. It is similar to void in Java and Null in other languages, but unlike those, Unit actually has a type (AnyVal).

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Scala Interview Questions

What do you understand by an implicit parameter in scala ?

1 Answers  


What is the difference between Function and Method in Scala?

1 Answers  


What is call-by-name? Does Scala and Java support call-by-name? What is the difference between call-by-value and call-by-name function parameters?

1 Answers  


What is string interpolation in scala?

1 Answers  


Explain the functionality of yield?

1 Answers  


What is flatmap in scala?

1 Answers  


What is seq in scala collection?

1 Answers  


What is final in scala?

1 Answers  


What is an array in scala?

1 Answers  


How to define Factory methods using object keyword in Scala? What is the use of defining Factory methods in object?

1 Answers  


What is an abstract class in scala?

1 Answers  


Explain the difference between array and list in scala?

1 Answers  


Categories