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

How to create ruby object?

1 Answers  


What does irb stand for?

1 Answers  


Explain the difference between a single quote and double quote?

1 Answers  


Explain Ruby exceptions?

1 Answers  


As you know ruby provides four types of variables. List them and provide a brief explanation for each?

1 Answers  


Explain case statement in Ruby?

1 Answers  


Tell me how can we define ruby regular expressions?

1 Answers  


Explain some differences between ruby and python.

1 Answers  


what is the difference between String and Symbol?

1 Answers  


Explain how Symbol is different from variables?

1 Answers  


Please explain the role of thread pooling in relation to the thread lifecycle in ruby?

1 Answers  


Explain about ruby code blocks?

1 Answers  


Categories