Easy learning with example program codes

can we override run method in thread?

run() method

public void run() : It run method is used to perform operations by thread.

Yes, we can override run method in thread but start method will only call Thread class run method.

Please follow and like us:

Copyright © 2020 CodesJava Protection Status