Q. What is the output of the below Java program?
Code:String str="FOX";
int i=0;
while(i<str.length())
{
System.out.print(str.charAt(i));
i++;
}
β
Correct Answer: (B)
FOX
String str="FOX";
int i=0;
while(i<str.length())
{
System.out.print(str.charAt(i));
i++;
}
You must be Logged in to update hint/solution