今天看到一个类(LogConfigurationException)的构造函数是这样写的:
public LogConfigurationException(Throwable cause)
{
this( ((cause == null) ? null : cause.toString()), cause);
}
刚开始很不解,this()怎么成函数了,请教度娘发现this()可以调用其它的构造函数。
淡忘了。做下笔记
更多this知识详解:http://blog.youkuaiyun.com/fzfengzhi/article/details/2174406
http://java.chinaitlab.com/base/833279.html