in Marcus Green mock test#1
http://www.jchq.net/mockexams/exam1.htm#Question%2030) 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
ANSWER is 1, 2, 3. I am confused, in this case, outer class is public already, can inner class be public also?
Please help me out. thanks!