I just finished studying chapter 1 and I would like the following questions answered in order to further clarify the topic.
1. If I have 2 source files in the same directory, and 1 source file has a package statement and 1 source file does not have a package statement - Are these source code files in the same package?
2. If you declare a class with package access level, why would you ever mark any of it's members as public?
(I'm assuming that this would never be done, but would like someone to confirm this.)
3. Would you ever have a source file without a package statement (making it a default package) containing a public class - that would be used for anything other than a small
test program? After all, a default package can't be imported.
This is my first post, so I hope it follows protocol.
Thanks.