Hi.Iam doing alott to understand the following scenario.Please help me,What is the wrong with the following code.
protected class AnotherClass
{
}
class MyClass
{
public static void main(
String l[])
{
System.out.println("hello");
}
}
D:\sureshsai>javac MyClass.java
MyClass.java:1: modifier protected not allowed here
protected class AnotherClass
Thanks and regards
suresh.