1> How does system(or compiler) calls run() method when we call start() method???
My guess is start() method is run() method from inside like this
public static void start(){
run();
}
Is start() method implemented the same way as i have written above ???
2> When we give our own implementation of start() method in class one which extends Thread class and another which implements Runnable interface.
After instantiating thread th1, when we call th1.start() then it is calling our own start() method for the class which extends Thread Class
but same is not true for the class which implements Runnable interface.
Please explain the above bizzarre behaviour.
Thanks