Given below the sample code :
public class Base {
static String str = "-";
public static void main(String[] args) {
try {
throw new Exception();
} catch (Exception e) {
try {
try {
throw new Exception();
} catch (Exception ex) {
str += "MI ";
}
throw new Exception();
} catch (Exception x) {
str += "NU ";
} finally {
str += "S ";
}
} finally {
str += "SIGN ";
}
System.out.println(str);
}
}
What will be the output of the above code?
1.No output
2.S SIGN
3.MI NU S SIGN
4.- MI NU S SIGN
(4)