Pregunta de entrevista de Bloomberg

In c++, how to implement "finally" block in java