Multiple Choice Question

Quiz Guidelines

 

QID: 
88
Question: 

Which line(s) of code in the following program will cause a compilation error?

public class TestClass{
static int value = 0; //1
public static void main(String args[]) //2
{
int 2ndArgument = Integer.parseInt(args[2]); //3
if( true == 2 > 10 ) //4
{
value = -10;
}
else{
value = 2ndArgument;
}
for( ; value>0; value--) System.out.println("A"); //5
}
}

Select 1 option

A. 1
B. 2
C. 3
D. 4
E. 5

Q&A Set: