Question 30)
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 is 1,2,3.
I thought local inner class may not have any access modifier and static modifier. Can anybody explain it ?
Thanks
Yi