Does throw expression have a result type in Scala?
Explanation
Although it may seem somewhat paradoxical, in Scala, throw is an expression that has a result type. Technically, an exception throw has type Nothing.
Source: Exception handling with try expressions

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback
Keep exploring
Scala quizzes
Cosmo
Sign Up Now
or Subscribe for future quizzes