test
Class Join

java.lang.Object
  extended by test.Join

public class Join
extends java.lang.Object

Sample Java class to illustrate How to join two threads in Java. join() method allows you to serialize processing of two threads.


Constructor Summary
Join()
           
 
Method Summary
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Join

public Join()
Method Detail

main

public static void main(java.lang.String[] args)
                 throws java.lang.InterruptedException
Throws:
java.lang.InterruptedException