10. 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);
i = i++;
System.out.println(i);
}
void fermin(int i){
i++;
}
}
Select 1 correct answer:
A. Compile time error
B. Output of 2
C. Output of 1
D. Output of 0