Q. What is the output of the below Java code?
Code:
boolean[] ary = {true, false, true, true};
for(int i=0; i<ary.length; i++)
{
System.out.print(ary[i] +",");
}
β
Correct Answer: (C)
true,false,true,true