Answer Posted / 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 View All Answers