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

What is the difference between :: and #:: in scala?

1 Answers  


What is Nothing in Scala? What is Nil in Scala? What is the relationship between Nothing and Nil in Scala?

1 Answers  


What companies use scala?

1 Answers  


What is a stream in scala?

1 Answers  


What is recursion tail in scala?

1 Answers  


What is Range in Scala? How to create a Range in Scala?

1 Answers  


Does Scala support all Functional Programming concepts? Does Java 8 support all Functional Programming concepts?

1 Answers  


Explain the main drawback of scala language?

1 Answers  


Mention Some keywords which are used by Java and not required in Scala? Why Scala does not require them?

1 Answers  


What is tail recursion in scala?

1 Answers  


What do you mean by scala map?

1 Answers  


What is a monad in scala? Explain

1 Answers  


Categories