Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


What is throw in scala?



What is throw in scala?..

Answer / 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

More Scala Interview Questions

Difference between Scala’s Int and Java’s java.lang.Integer? What is the relationship between Int and RichInt in Scala?

1 Answers  


In what ways that Scala is healthier than different programming language?

1 Answers  


How do I append to the list?

1 Answers  


What is the difference between Java’s 'If..Else' and Scala’s 'If..Else'?

1 Answers  


How to install scala? Explain

1 Answers  


What is the result of x+y*z and why?

1 Answers  


What is a multiline expression in scala?

1 Answers  


What is the best Framework to generate REST API documentation for Scala-based applications?

1 Answers  


What is for-comprehension in scala?

1 Answers  


What does raw method in scala string interpolation?

1 Answers  


What is Diamond Problem? How Scala solves Diamond Problem?

1 Answers  


Explain que?

1 Answers  


Categories