A
Q. What is the output of the below Java program?
Code:
String str[] = {"A","B","C"};
int i=0;
do
{
if(i>= str.length)
break;
System.out.print(str[i] + ",");
i++;
}while(true);
int i=0;
do
{
if(i>= str.length)
break;
System.out.print(str[i] + ",");
i++;
}while(true);
- Correct Answer - Option(A)
- Views: 14
- Filed under category Java
- Hashtags:
Discusssion
Login to discuss.