Thread:
   Definition: A thread is a single sequential flow of control within a program.

   In java the main method is one of the thread which is used to execute the programs. Hence main method is an entry point in java.

Q: How to create thread?
Ans: Can be created in 2 ways:
  (a) using Runnable interface
  (b) using Thread class


(a) using Runnable interface:
	Create one class.
   The class should implement the Runnable interface. This interface is having a abstract void run() abstract method. Hence the class which implements this interface should implement the run() abstract method.
   
  Create few methods inside your class which is implementing Runnable interface.
 Ex: write below methods.
  public void evenNumber()
  {
      <statements>;
  }


  public void oddNumber()
  {
      <statements>;
  }

Call all the methods inside the run() method which is implemented by your class.

Create a object to your class (which is a job now) & pass the class instance to the Thread constructor.

Assign a name to your thread & Start the thread.
----------------------------

(b) using Thread class
