In Runnable, many threads share the same object instance.

Options
- True
- False


CORRECT ANSWER : True

Discussion Board
Runnable class

Runnable is a public interface that should be implemented by any class whose instance is executed by a thread. The class should define the methods and functions with no arguments called run. Runnable class provides an interface through which many threads can share the same object instance. It provides a protocol for objects that wish to execute the code while they are in active state.

The implementation of runnable is being done by class thread. Active means that a thread has just started and it hasn't been stopped by any other process or method.

Rohit Sharma 08-15-2014 07:25 PM

Write your comments


Enter the code shown above:

(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)


Advertisement