вторник, 30 марта 2010 г.

Вот такой вопрос встретил в одном из тестов по джаве.


public class Labs {

public static void main(String[] args) {
try {
new Labs().throwExcept();
} catch (Exception e) {
System.out.println(e.getMessage());
}
}
private void throwExcept() throws Exception {
try {
throw new Exception("A");
} finally {
throw new Exception("B");
}
}
}