Prepare
Practice
Interview
Aptitude
Reasoning
English
GD
Placement papers
HR
Current affairs
Engineering
MCA
MBA
Online test
Login
Online Practice Test
>
Java Part 2
« Previous
Next »
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
« Previous
Next »
Write your comments
*
*
Email must be in the form someone@domain.com
*
*
Enter the code shown above:
Please enter the code shown above
(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)
Related Content
Java Beginner (11)
Java (39)
Java (40)
Java (22)
Java (30)
Java (25)
Java (20)
Java (20)
Core Java (20)
Core Java (10)
Core Java (72)
EJB (20)
JDBC (20)
Applet (20)
Struts (21)
Servlets (20)
Java Web Services (20)
Javascript (40)
J2EE (10)
jQuery (46)
Advertisement
▲