What is sleep() method:
The sleep() method is a static method of Thread class and it makes the
thread sleep/stop working for a specific amount of time.
The sleep() method throws an InterruptedException if a thread is
interrupted by other threads,that means Thread.