Why is there no private constructor without arguments?

Looking at the ArrayUtils class from the apache community, the document says:

 ArrayUtils() 

ArrayUtils instances must NOT be built in standard programming.

I looked at the source code of this class, and I saw that they made a public constructor:

 public ArrayUtils() { super(); } 

Since all methods / fields of the class are static, I understand that it makes no sense to instantiate this class.

So why didn't they make the constructor private , like in the Math class, to avoid creating new instances?

+7
java constructor
source share
1 answer

The documentation says:

This constructor is publicly available to allow tools that require a JavaBean instance to work.

+10
source share

All Articles