FileDocCategorySizeDatePackage
TestOverride.javaAPI DocExample909Wed Mar 10 23:18:56 GMT 2004javathreads.examples.ch13

TestOverride

public class TestOverride extends Object implements Runnable

Fields Summary
Constructors Summary
Methods Summary
public static voidalertAdministrator(java.lang.Throwable e)

        // Use Java Mail to send the administrator's pager an email
        System.out.println("Adminstrator alert!");
        e.printStackTrace();
    
public static voidmain(java.lang.String[] args)

        ThreadGroup tg = new OverrideThreadGroup();

        Thread t = new Thread(tg, new TestOverride());
        t.start();
    
public voidrun()

        ArrayList al = new ArrayList();
        while (true) {
            al.add(new byte[1024]);
        }