Question: Write a java program to create a class MyThread in this class a constructor, call the base class constructor, using super and starts the thread.
Write a java program to create a class MyThread in this class a constructor, call the base class constructor, using super and starts the thread. The run method of the class starts after this. It can be observed that both main thread and created child thread are executed concurrently.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
