Home / MCQ Bank / Computer
Computer Exception Handling In C Sharp

Which statement is used to throw an exception in C#?

Select the best option to verify your answer:
Show Correct Answer
Correct Answer: Option D • throw

Related Computer Questions

The ______ is a framework-specific entity that negotiates resources from the ResourceManager. Which happens if the fast-moving pointer(hare) reaches the tail of the linked list? What will be the output of the following C++ code? #include <typeinfo> #include <iostream> using namespace std; class A { public: virtual ~A(); }; int main() { A* a = NULL; try { cout << typeid(*a).name() << endl; } catch (bad_typeid) { cout << "Object is NULL" << endl; } } If chromatic number of a line graph is 4 then the chromatic index of the graph will be? What is the purpose of the `context-param` element in the `web.xml` file of a Java web application?