Changing jdk version.
Implementation of thread using thread class.
Implementation of thread using runnable interface.