Threads are objects like any other Java objects and are instances of class java.lang.thread, or instances of subclasses of this class. Java threads can also execute code which was not possible with normal objects -
Creating a thread in Java is done like this:
Thread thread = new Thread();
To start the thread you will call its start() method, like this:
thread.start();
Example
Thread thread = new Thread(){
public void run(){
System.out.println("I am inside the thread");
}
}
thread.start();