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 .  1 2 3 1
B .  1 2 3 2
C .  Repeatedly print 1 2 3 and cause infinite loop.
D .  Compilation fails because of line 2
E .  None of these
Answer: Option C

Submit Your Solution Below and Earn Points !
Next Question

Submit Solution

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

More Questions on This Topic :


Latest Videos

Latest Test Papers