MathWorks interview question

Exception handling in C, C++, n java