Prepare
Practice
Interview
Aptitude
Reasoning
English
GD
Placement
HR
Current affairs
Engineering
MCA
MBA
Online Test
Videos
Login
Online Practice Test
>
Core Java 3
« Previous
Next »
Runnable is a_______
Options
- class
- Method
- Variable
- Interface
CORRECT ANSWER : Interface
Discussion Board
request
these question's are very helpfull for fresher or me.
if possible " plz send multiple choice
question in c++ ,java and c in my
email id with answer"
rohitadhikari017@gmail.com"
Rohit Adhikari 10-2-2015 03:44 AM
No correction
ANS is correct only.
Runnable represent a task in Java which is executed by Thread. java.lang.Runnable is an interface and defines only one method called run(). When a Thread is started in Java by using Thread.start() method it calls run() method of Runnable task which was passed to Thread during creation. Code written inside run() method is executed by this newly created thread. Since start() method internally calls run() method its been a doubt among Java programmers that why not directly call the run() method.
Aswini 02-19-2015 01:41 AM
correction
my dear genius administrator,Runnable is a class not interface because Exception is the object of Runnable,if it is interface how you can create Object for interface.If you have more information visit sun tutorial api documentation.
virendra 10-14-2014 11:29 AM
« 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
▲