Styrow.dev
Question 73 of 247
Java Topic: General medium

What will happen if we make the constructor private?

Question

What will happen if we make the constructor private?

Answer

We can’t create the objects directly by invoking new operator.


📲 Practice Offline on Mobile: Download the free QA Automation & SDET Prep app on Google Play & App Store.