Class chap8.ch8_fig2
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class chap8.ch8_fig2

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Panel
                           |
                           +----java.applet.Applet
                                   |
                                   +----chap8.ch8_fig2

public class ch8_fig2
extends Applet
implements Runnable
A class for demonstrating a thrown-exceptions effect on the flow of execution.

Variable Index

 o myThread
The thread that our exception gets thrown in.

Method Index

 o lastMethod()
A method that generates an MalformedURLException.
 o myMethodA()
A method that gets called by run, which calls another method that generates an exception.
 o myMethodB()
A method, called by myMethodA, that calls another method that generates an exception.
 o run()
Override of Thread.run.
 o start()

Variables

 o myThread
  public Thread myThread
The thread that our exception gets thrown in.

Methods

 o start
  public void start()
Overrides:
start in class Applet
 o run
  public void run()
Override of Thread.run.
 o myMethodA
  public void myMethodA() throws Exception
A method that gets called by run, which calls another method that generates an exception.
 o myMethodB
  public void myMethodB() throws MalformedURLException
A method, called by myMethodA, that calls another method that generates an exception.
 o lastMethod
  public void lastMethod() throws MalformedURLException
A method that generates an MalformedURLException.

All Packages  Class Hierarchy  This Package  Previous  Next  Index