public class MyClass1 {
public static void main(
String argv[]){ }
/*Modifier at XX */ class MyInner {}
}
What modifiers would be legal at XX in the above code?
1) public
2) private
3) static
4) friend
The answer given is 1,2 which i disagree with
But a local class cannot have a static keyword(though it is implicitly static bcz it is inside a static block)
Also it cannot have any accessibility modifier.
manav