Item 2 中的" Effective Java,2nd edition " 全书有此代码片断,其中作者要禁止空对象的初始化。 class Example { private Example() { throw new AssertionError();
確定! 回上一頁