Hi, I am reading the following book: OCA
Java SE7 Programmmer 1 Certificagtion Guide.
In that book on chapter 1 page 24, it says that "If you define a public class or an interface in your class, then it should match the name of the java source code file."
Does the statement above mean the following should compile fine ?
public class Animal{
public class Animal{ }
}
The author gives an example saying that if you have a class Multiple.java and in that class, you have:
public class Multiple{}, then it should compile.
But this does not compile. I tried it. Any ideas ?