在这询问有关Math这个static method
有没有曾经拥有过constructor
因为在搜寻之后发现它似乎是没有的
但书上却这样写
But you can restrict other code from instantiating
a non-abstract class by marking the constructor
private. Remember, a method marked private means
that only code from within the class can invoke
the method. A constructor marked private means
essentially the same thing-only code from within
the class can invoke the constructor. Nobody can
say 'new' from outside the class. That's how it works
with the Math class, for example. The constructor
is private, you cannot make a new instance of Math.
The compiler knows that your code doesn't have
access to that private constructor
大概是说Math不能被new是因为他的constructor被设为private
不知道我理解有没有错@@
看的是 HeadFirst Java
感谢