Question OOP-EXC-0022
EasyWhich Python keyword is used where Java and C++ use 'catch'?
- A.
rescue
- B.
except
- C.
Show answer and explanation
Answer: B
Python's form is try … except … else … finally.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Exception Handling question
Which Python keyword is used where Java and C++ use 'catch'?
rescue
except
Answer: B
Python's form is try … except … else … finally.
handle
catch