Thread t = new Thread(new TestOverrideThread());
t.setUncaughtExceptionHandler(new OverrideExceptionHandler());
System.out.println(t.getUncaughtExceptionHandler());
t.start();
public void
run()
ArrayList al = new ArrayList();
while (true) {
al.add(new byte[1024]);
}