Ask a Question
Advertise on boostr.in
boostr.in questions - Question:Can a public class MyClass be defined in a source file named YourClass.java?
A: 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.
Sep 13, 2013
Java Interview Questions
Sep 12, 2013
to add a comment.
Your name to display (optional):
Email me at this address if my answer is selected or commented on:
Email me if my answer is selected or commented on
Privacy: Your email address will only be used for sending these notifications.
To avoid this verification in future, please