Javaパッケージは本質的にクローズドではないので、コード・セキュリティのためにパッケージに依存するのは良い習慣ではない。
パッケージ・スコープの目的は、プログラムの他の部分からの偶発的なアクセ スを防ぐことである。これはソフトウェア開発を容易にする機能であり、セキュリティ機能ではない。
Java packages are not inherently closed; therefore, relying on them for code security is not a good practice.
The purpose of package scope is to prevent accidental access by other parts of a program. This is an ease-of-software-development feature but not a security feature.