Public class Exceptions {public static void main(String[] args) {try {if (args.length == 0) return;System.out.println(args[0]);} | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Public class Exceptions {public static void main(String[] args) {try {if (args.length == 0) return;System.out.println(args[0]);}

A.If run with no arguments, the program will produce no output. B. If run with no arguments, the program will print "The end". C. The program will throw an ArrayIndexOutOfBoundsException D. If run with one argument, the program will simply print the given argument E.If run with one argument, the program will print the given argument followed by "The end" what is ouput of the given code?

28th Jun 2017, 2:01 AM
Sandeep Jena
Sandeep Jena - avatar
3 Answers
+ 2
Is this a quiz ? :/
28th Jun 2017, 2:02 AM
Ekansh
0
its a qus i came upto and was unable to answer. so i need help
28th Jun 2017, 2:03 AM
Sandeep Jena
Sandeep Jena - avatar
0
A
28th Jun 2017, 5:45 AM
TUSHAR SHARMA
TUSHAR SHARMA - avatar