Can A Public Class MyClass Be Defined In A Source File Named YourClass.java

Can A Public Class MyClass Be Defined In A Source File Named YourClass.java


  • 29 Dec, 2011

    No. The source file name, if it contains a public class, must be the same as the public class name itself with a .java extension.

    Comments Received:
    Please give your suggestions and feedback:

2009-2016 downloadmela.com. All rights reserved.