MCQs>IT & Programming>Java>Result when you compile and run the following code? public class Test { public void method() { for(int i = 0; i < 3; i++) { System.out.print(i); } System.out.print(i); } }
Java MCQs
What is the result when you compile and run the following code? public class Test { public void method() { for(int i = 0; i < 3; i++) { System.out.print(i); } System.out.print(i); } }
Answer
Correct Answer: Compilation error
Explanation:
Note: This Question is unanswered, help us to find answer for this one