Computer Science, asked by jasmeet6779, 1 year ago

Which method must be defined by a class implementing the java.lang.runnable interface?

Answers

Answered by Alfardo
1
By implementing Runnable interface, you need to provide implementation for run() method.

To run this implementation class, create a Thread object, pass Runnable implementation class object to its constructor. Call start() method on thread class to start executing run() method.

Similar questions