顶级模块声明会将整个文件包括在模块中。
A top-level module declaration includes the whole file in the module.
其次,模块声明要公开哪些包,因此没有公开的包是私有的。
Second, a module declares which packages it exposes, so packages that are not exposed are private.
顶级模块声明只能作为文件中的第一个声明出现。
A top-level module declaration can appear only as the first declaration in a file.
应用推荐