Question 58Asked in Bihar STET 2024 Paper II Computer Science, 12 Jun 2024, Shift 1 (10:00 AM)

Which keyword is used to catch and handle exceptions in a try-catch block?ट्राई-कैच ब्लॉक में अपवादों को पकड़ने और संभालने के लिए किस कीवर्ड का उपयोग किया जाता है?

ट्राई-कैच ब्लॉक में अपवादों को पकड़ने और संभालने के लिए किस कीवर्ड का उपयोग किया जाता है?
  1. Athrowफेंक दो
  2. Bcatchपकड़ो
  3. Cexceptionअपवाद
  4. Dhandleहैंडल
Show answerHide answer

Correct answer: (B) catchपकड़ो

Explanation

The catch block catches an exception thrown in the try block and handles it. throw is used to raise an exception, and "exception" and "handle" are not keywords.catch ब्लॉक try ब्लॉक में फेंके गए exception को पकड़ता है और उसे संभालता है। throw का उपयोग exception उठाने के लिए होता है, और "exception" तथा "handle" keyword नहीं हैं।

From Bihar STET 2024 Paper II Computer Science PYQ, 12 Jun 2024, Shift 1 (10:00 AM)

This is question 58 of Bihar STET 2024 Paper II Computer Science PYQ, 12 Jun 2024, Shift 1 (10:00 AM). See all questions of this paper with answers, or attempt the paper as a timed online test to get your score and all-India rank.