A
Q. What will be the output of the following Java program?
Code:
class Output
{
public static void main(String args[])
{
final int a=10,b=20;
while(a {
System.out.println("Hello");
}
System.out.println("World");
}
}
{
public static void main(String args[])
{
final int a=10,b=20;
while(a {
System.out.println("Hello");
}
System.out.println("World");
}
}
- Correct Answer - Option(D)
- Views: 6
- Filed under category Java
- Hashtags:
Discusssion
Login to discuss.