Multiple Choices
Answer (Choose 1 answer)
What will happen when you attempt to compile and run the following code?
public class Inc{
public static void main(String argv[]){
Inc inc = new Inc();
int i=0;
inc.fermin(i);
System.out.println(i++);
}
void fermin(int i){
i++;
}
}
A. Compile time error
B. Output of 2
C. Output of 1
D. Output of 0