public class TestException { public static void main(String[] args) { String str = "1"; for(int i=0;i<10000;i++) { str += str; } } }