πŸ“Š JAVA
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] +",");
}
  • (A) true,true,true,true,
  • (B) true,false,false,true
  • (C) true,false,true,true
  • (D) Compiler error
πŸ’¬ Discuss
βœ… Correct Answer: (C) true,false,true,true

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
720
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Ram Sharma
Publisher
πŸ“ˆ
99%
Success Rate