What is Runnable interface in Java?



If your class is intended to be executed as a thread, then you can achieve this by implementing a Runnable interface. This belongs to the java.lang package.

Swarali Sree
Swarali Sree

I love thought experiments.


Advertisements