1A. write a java code by extending thread class
1B. write a java code 