What is the preferred Throwable to use in a private utility class constructor?

前端 未结 8 1283
青春惊慌失措
青春惊慌失措 2020-12-14 01:07

Effective Java (Second Edition), Item 4, discusses using private constructors to enforce noninstantiability. Here\'s the code sample from the book:

public fi         


        
8条回答
提交回复
热议问题