Given below the sample code :
public class SuperClass {
private static final int ID = 3;
private String name;
public void SetMethod(final int nn) {
int number = 11;
class ClassInner {
void Display() {
System.out.println("OUTPUT= " + **);
}
}
new ClassInner().Display();
}
}
What should be in place of "**" , so that it can run without any error ?
A. The int ID
B. The String
C. The int nn
D. The int number
(A),(B) & (C)
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.