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

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

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