πŸ“Š JAVA
Q. Predict the output of following Java program.
Code:
class Test { 
    public static void main(String[] args) { 
      for(int i = 0; 0; i++) 
      { 
          System.out.println("Hello"); 
          break; 
      } 
    } 
} 
  • (A) Hello
  • (B) Empty Output
  • (C) Compiler error
  • (D) Runtime error
πŸ’¬ Discuss
βœ… Correct Answer: (C) Compiler error

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

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