Which method must be defined by a class implementing the java.lang.runnable interface?
Answers
Answered by
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.
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
Math,
7 months ago
Math,
7 months ago
Social Sciences,
7 months ago
Business Studies,
1 year ago
Biology,
1 year ago
Computer Science,
1 year ago