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.
  
  -  
	myThread
   -  The thread that our exception gets thrown in.
 
  
  -  
	lastMethod()
   -  A method that generates an MalformedURLException.
  
 -  
	myMethodA()
   -  A method that gets called by run, which calls another
method that generates an exception.
  
 -  
	myMethodB()
   -  A method, called by myMethodA, that calls another method
that generates an exception.
  
 -  
	run()
   -  Override of Thread.run.
  
 -  
	start()
   -  
 
  
myThread
  public Thread myThread
  -  The thread that our exception gets thrown in.
 
  
start
  public void start()
  
    -  Overrides:
    
 -  start in class Applet
  
 
run
  public void run()
  -  Override of Thread.run.
 
myMethodA
  public void myMethodA() throws Exception
  -  A method that gets called by run, which calls another
method that generates an exception.
 
myMethodB
  public void myMethodB() throws MalformedURLException
  -  A method, called by myMethodA, that calls another method
that generates an exception.
 
lastMethod
  public void lastMethod() throws MalformedURLException
  -  A method that generates an MalformedURLException.
 
All Packages  Class Hierarchy  This Package  Previous  Next  Index