Nikhil Goyal

6%
Flag icon
A default constructor is generated only if a class contains no explicit constructors, so a class can be made noninstantiable by including a private constructor:
Effective Java
Rate this book
Clear rating
Open Preview