Bitwise interview question

Questions on try-catch block