Answer Posted / Neeraj Kumar
"throw in Scala is a keyword used to create an exception and pass it to the calling method. It is used when normal flow of execution cannot be continued due to an error or exceptional condition. The syntax for using throw in Scala is: throw new Exception("exception message")"
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers