Junior
What does an object of the Runnable interface do?
sobes.tech AI
Answer from AI
An object of the Runnable interface represents a task that can be executed by a thread. It contains a single method run(), which holds the code to be executed.
public interface Runnable {
void run(); // Method containing task code
}