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
Geography,
7 months ago
Business Studies,
7 months ago
Business Studies,
1 year ago
Biology,
1 year ago
Computer Science,
1 year ago