MathWorks Interview Question

Some questions in technical round asked were: 1- Given a code snippet, predict the output based on Java exceptions. 2- Why public static void main in Java? 3 - Abstract classes 4 - static variable in a loop output.