Write a java program to give the example of concurrency.