S
Q. What will be the output of the following Java code?
class Output
{
public static void main(String args[])
{
try
{
int a = 0;
int b = 5;
int c = a / b;
System.out.print("Hello");
}
finally
{
System.out.print("World");
}
}
}
- Correct Answer - Option(C)
- Views: 28
- Filed under category JAVA
Discusssion
Login to discuss.