What is the use of ‘???’ in Scala-based Applications?
Answer / Aprajita Devi
'???' in Scala is called a pattern matching placeholder and is used in pattern matching expressions to represent any value of any type. It allows for more flexible pattern matching, as it can match against any value when other patterns fail.
| Is This Answer Correct ? | 0 Yes | 0 No |
Like Java’s java.lang.Object class, what is the super class of all classes in Scala?
What are higher-order functions?
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?
What is a constructor in scala?
Explain que?
What is method overriding in scala?
Explain ‘Scala higher order’ functions?
How do you define a function in scala?
What is a stream in scala?
Explain data types in scala?
How do we declare a private Primary Constructor in Scala? How do we make a call to a private Primary Constructor in Scala?
What is list in scala collection?