New course! Every coder should learn Generative AI!
Try a free lesson0
Private class java
In java, you can prevent a client from making new instances of your utility class by declaring a private constructor. Is this true?
1 Answer
+ 5
Yes, it is true and you can also test it easily.
https://code.sololearn.com/ciV66oI9326o/?ref=app