Home »
MCQs »
Scala MCQs
Wildcard patterns (_) is used to –
55. Wildcard patterns (_) is used to -
- Create variables
- Create new unmatched patterns
- Match the unmatched case
- None of these
Answer: C) Match the unmatched case
Explanation:
The wildcard pattern ( _ ) matches any object whatsoever.