Java 11 中默认构造函数的可见性?

Visibility of a default constructor in Java 11?

默认构造函数在Java11中的可见性是多少? 这与构造函数的默认可见性不同。

默认构造函数的可见性取决于 class 的访问修饰符,如 java 规范所述 Chapter 8. Classes - 8.8.9. Default Constructor:

The default constructor has the same access modifier as the class, unless the class lacks an access modifier, in which case the default constructor has package access (§6.6).