InterviewSolution
Saved Bookmarks
| 1. |
What is the difference between Java and Scala? |
|||||||||||||||
Answer»
Option in Scala is a container that holds zero or one element of a specific type. It REPRESENTS values that either exist or do not exist. The Option is used to wrap missing values and is a REPLACEMENT to return null values. This question has the most likelihood of being ASKED in Scala interview questions for experienced professionals. |
||||||||||||||||