Example

public class ClassA extends Thread {
public ClassA ()
{
start(); }


}


Solution
In the given example 'Calss A' is a subclass of Thread. So, the 'start()' method should not be called from the constructor like it has been done here