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.