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);
β
Correct Answer: (A)
A,B,C,