Consequences of not overriding the run() method:
If we don’t override the run() method, the compiler will not flash any error, and it will execute the run() method of the Thread class that has been emptily implemented, So, there will be no output for this Thread.
Below is an example of the method returning no output:
public class Example extends Thread { public static void main(String[] args) { Thread thread = new Thread( new Example()); thread.start();// will create a new thread and call thread class's run() method which has no implementation.} }