خروجی این برنامه چیست؟ توضیح دهید.
#include <iostream> using namespace std; void method1() { try { cout << "METHOD TRY" << endl; throw 1; } catch (int ex) { cout << "METHOD CATCH" << endl; throw 2; } cout << "END METHOD" << endl; } int main() { try { cout << "TRY" << endl; method1(); } catch (int ex) { cout << "CATCH " << ex << endl; } cout << "FINALLY" << endl; return 0; }