What do you understand by unit and ()in scala?



What do you understand by unit and ()in scala?..

Answer / Satish Kumar Gupta

In Scala, a Unit is a special type that represents the absence of any value, similar to void in Java. It's the return type of functions that don't return any values. The empty tuple () is a shorthand for the Unit type and can be used as a return type or a value of a variable.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Hadoop General Interview Questions

What is difference between secondary namenode, checkpoint namenode & backupnode?

1 Answers  


Is it possible to have hadoop job output in multiple directories? If yes, how?

1 Answers  


What do you know about yarn?

1 Answers  


What is Erasure Coding in Hadoop?

1 Answers  


What does the high availability of a name-node means?

1 Answers  


How ordering in hdfs is finished?

1 Answers  


How jobtracker assign tasks to the tasktracker?

1 Answers  


What happen if one of the datanodes has much slower cpu?

1 Answers  


Ideally what should be replication factor in a Hadoop cluster?

1 Answers  


Explain how can we check whether namenode is working or not?

1 Answers  


Define a record reader?

1 Answers  


What is fsck?

1 Answers  


Categories