A
Q. Predict the output of following Java program.
Code:
class Test {
public static void main(String[] args) {
for(int i = 0; 0; i++)
{
System.out.println("Hello");
break;
}
}
}
public static void main(String[] args) {
for(int i = 0; 0; i++)
{
System.out.println("Hello");
break;
}
}
}
- Correct Answer - Option(C)
- Views: 9
- Filed under category Java
- Hashtags:
Discusssion
Login to discuss.