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...


How an exception is handled in Ruby?



How an exception is handled in Ruby?..

Answer / Akanksha Saxena

In Ruby, exceptions are objects that represent errors or exceptional conditions during program execution. They can be handled using the rescue keyword within a begin...end block.n```rubynbeginn # code that might raise an exceptionnrescue ExceptionClassn # code to handle the exceptionnend``

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Ruby Interview Questions

what is the difference between put and putc statement?

1 Answers  


How will you rename and delete a file in Ruby?

1 Answers  


What is the difference between extend and include?

1 Answers  


What are the data types in ruby?

1 Answers  


How to open a file in Ruby?

1 Answers  


How to access Ruby strings elements in an application?

1 Answers  


What must you do first before you can invoke an unboundmethod object?

1 Answers  


Tell me what are blocks and procs?

1 Answers  


Difference between nil and false in ruby?

1 Answers  


what is the difference between Procs and Blocks?

1 Answers  


Explain ampersand parameter (&block) in Ruby?

1 Answers  


What are ruby variables.

1 Answers  


Categories