One of hundreds of answers available with our premium content service.
A: Yes, Java class constructors are assigned access modifiers. If none is explicitly declared, the constructor will implicitly have package visibility, which means it is accessible by the class itself and other classes in the same package only. Constructors may also be assigned private, protected or public access. The choice of constructor visibility modifiers will depend on the nature of your application, but the notes below give some broad principles in each case.
… full answer hidden
Premium members click below for full answer
Can constructors have visibility modifiers?
We love social media, but we do not expect you to create yet another public outpost on the Web.