A
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] +",");
}
for(int i=0; i<ary.length; i++)
{
System.out.print(ary[i] +",");
}
- Correct Answer - Option(C)
- Views: 16
- Filed under category Java
- Hashtags:
Discusssion
Login to discuss.