public class MyClass1 {
public static void main(
String argv[]){ }
/*Modifier at XX */ class MyInner {}
}
What are the valid modifiers at XX
the options are
public
private
static
friend.
The answer says that public, static and private are valid, but I think the local inner classes cannot have any access modifiers as they are local to method.
I even tried to compile and it gives an error
Am I correct?