Sail E0 Webinar
Question
What will be the result of the following code?public class Test{ static public void main(String args[]){ //line 2 int i, j; for(i=0; i
Options:
A .  Repeatedly print 1 2 3 and cause infinite loop.
B .  Compilation fails because of line 2
C .  1 2 3 2
D .  1 2 3 1
E .  None of these
Answer: Option A

Submit Your Solution Below and Earn Points !
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers