

Hi
Here is the answer.
A java source code file contains atmost one public class or interface defined with in the file.Java source code files takes the name of the public class or interface that is defined with in the source code file.If no public class or interface is defined with in the source code file then file must take on a name that is different than its public class or interface.
Thanks.
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.