Why finally block of this code does not execute? it only prints 1. Is finally block not execute after System.exit(0);
?
void method2() {
try {
System.out.println("1");
System.exit(0);
} finally {
System.out.println("3");
}
}