publicclass MainClass {
publicstaticvoid main(String[] argv) {
try {
// throw an OutOfMemoryError...
System.out.println("Success");
}catch (Exception e) {
System.out.println("General exception");
} finally {
System.out.println("Doing finally part");
}
System.out.println("Carrying on");
}
}
A. Success
B. Bad URL
C. Bad file contents
D. General exception
E. Doing finally part
F. Carrying on