How many values of type Unit have in Scala?



How many values of type Unit have in Scala?..

Answer / Chandra Mani Pal

The value of type Unit in Scala is only one, representing the absence of a value. It's equivalent to the void keyword in Java or C#.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Scala Interview Questions

Mention how scala is different from java?

1 Answers  


Write a few frameworks of scala?

1 Answers  


What is tail recursion in scala?

1 Answers  


What is method overriding in scala?

1 Answers  


Make a case for ‘Scala higher order’ functions?

1 Answers  


Difference between Scala’s Inner class and Java’s Inner class?

1 Answers  


Differentiate between array and list in scala.

1 Answers  


What is the use of 'object' keyword in Scala? How to create Singleton objects in Scala?

1 Answers  


What are higher-order functions in scala?

1 Answers  


What does f method in scala string interpolation?

1 Answers  


Why scala is faster than java?

1 Answers  


What is for-comprehension in scala?

1 Answers  


Categories