Bitwise Interview Question

Questions on try-catch block