A Developer Gateway To IT World...

Techie Uncle Software Testing Core Java Java Spring C Programming Operating System HTML 5 Java 8 ES6 Project

Use of super.start() method

What is the use of super.start() method in Multithreading?

What is the use of super.start() method in Java?

class MyThread extends Thread
{
    public void start()
    {
        super.start();
        System.out.println("start method");
    }
    public void run()
    {
        System.out.println("run method");
    }
}
class Test4
{
    public static void main(String args[])
    {
        MyThread t=new MyThread();
        t.start();
        System.out.println("main method");
    }
}

OUTPUT:

LEARN TUTORIALS

.

.