216k views
3 votes
Class exception_handling

public static void main (String []args)

try



System.out.print("Hello" + " " + 1/0);



catch( ArithmeticException e)



System.out.print("World");





What will be the output of the following java program ?

Select one:

a. HelloWorld

b. World

c. Hello World

d. Hello

1 Answer

5 votes
The answer is option A
User Curiousguy
by
8.0k points

Related questions