Engineering Full Stack Apps with Java and JavaScript
Considering the following program, which of the options are true?
public class FinallyTest{ public static void main(String args[]){ try{ if (args.length == 0) return; else throw new Exception("Some Exception"); } catch(Exception e){ System.out.println("Exception in Main"); } finally{ System.out.println("The end"); } } }
Select 2 options
A. If run with no arguments, the program will only print 'The end'.
B. If run with one argument, the program will only print 'The end'.
C. If run with one argument, the program will print 'Exception in Main' and 'The end'.
D. If run with one argument, the program will only print 'Exception in Main'.
E. Only one of the above is correct.