How to write a \'Multithreaded\' program to display the following output to exhibit the behaviour of a thread by extending a Thread class? output:
Thread A