标签:语言
看这个代码:
public class D { @Override public String toString() { return "obj:"+this; } public static void main(String[] args) { System.out.println(new D()); } }
Exception in thread "main" java.lang.StackOverflowError at java.lang.AbstractStringBuilder.ensureCapacityInternal(AbstractStringBuilder.java:113) at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:415) ...
标签:语言
原文地址:http://blog.csdn.net/chdjj/article/details/25884565