Share on Google+Share on Google+

srinivas
runnable
1 Answer(s)      6 years and 8 months ago
Posted in : Java Beginners
is java.lang.Runnable is marker interface?

Ads

View Answers

August 3, 2010 at 1:32 PM


Hi Friend,

We all know that marker interface does not contain any method. But Runnable is a marker interface even though it is having run() method.

Thanks









Related Tutorials/Questions & Answers:
Runnable JAR
Runnable JAR  How to create runnable JAR file in eclipse ? Please provide me step by step demo... I am windows 7 user. I have made one jar file but when I double click it,it doesn't run. Why so
Runnable JAR
Runnable JAR  How to create runnable JAR file in eclipse ? Please provide me step by step demo... I am windows 7 user. I have made one jar file but when I double click it,it doesn't run. Why so
Advertisements
Java Thread and Runnable
Java Thread and Runnable  What's the difference between Thread and Runnable types
runnable - Java Beginners
runnable  is java.lang.Runnable is marker interface?  Hi Friend, We all know that marker interface does not contain any method. But Runnable is a marker interface even though it is having run() method. Thanks
Java : Runnable Thread
Java : Runnable Thread In this tutorial we are describing Runnable Thread with example. Runnable Thread : Runnable thread is an easy way to create a thread by implementing the Runnable interface. You need to implement a single
To make java exe or runnable file
To make java exe or runnable file   Helo sir i make a java application.I need to help how run application direct in pc i.e how it packaged, .exe file or setup file
Java Runnable Interface
Java Runnable Thread is a piece of the program execution. Java Runnable.... Thread is also created by implementing the Runnable interface. Java Runnable Thread Example public class runnable1 implements Runnable { @Override
Threads on runnable interface - Java Beginners
Threads on runnable interface  need a program.....please reply asap Create 2 threads using runnable interface.First threads shd print "hello" & second shd print "welcome". using synchronisation tech print d words alternatively
Threads on runnable interface - Java Beginners
Threads on runnable interface  need a program.....please reply asap Create 2 threads using runnable interface.First threads shd print "hello" & second shd print "welcome". using synchronisation tech print d words alternatively
Runnable interface in java
In this section we will learn about Runnable interface in java. In java thread are created by two ways, one by extending Thread class and another one by implementing Runnable interface
implements runnable n extends thread - Java Beginners
implements runnable n extends thread  what is the difference between implements runnable n extends thread? public class...(); class StringThreadImplement implements Runnable { private String } }  Hi public class
Diff between Runnable Interface and Thread class while using threads
Diff between Runnable Interface and Thread class while using threads  Diff between Runnable Interface and Thread class while using threads  ... inheritance feature whereas If you implement runnable interface, you can gain better
Diff between Runnable Interface and Thread class while using threads
Diff between Runnable Interface and Thread class while using threads  Diff between Runnable Interface and Thread class while using threads  ... inheritance feature whereas If you implement runnable interface, you can gain better
Difference between extends thread class vs implements runnable interface - Java Interview Questions
Difference between extends thread class vs implements runnable interface ... and implementing runnable interface.  Hi Friend, Difference: 1)If you... runnable interface, you can gain better object-oriented design and consistency
SCJP Module-8 Question-7
Given a sample code: public class Test implements Runnable { public void run() { System.out.print("run"); } public static void main(String[] args) { Runnable r = new Test(); Thread t = new Thread(r); t.run(); t.start
Creation of MultiThreads
or implementing interface Runnable. Lets see an example having the implementation..., lets create the same program implenting the Runnable interface: class MyThread1 implements Runnable{   Thread t;   MyThread1(String s)  {     t=new
Creation of Multiple Threads
interface Runnable. Lets see an example having the implementation... create the same program implenting the Runnable interface: class MyThread1 implements Runnable{   Thread t;   MyThread1(String s)  {     t=new Thread
Creation of MultiThreads
Runnable. Lets see an example having the implementation of the multithreads... implenting the Runnable interface:   class MyThread1 implements Runnable{   Thread t;   
Java Interview Questions - Page 5
; Runnable interface. Put jobs in a run() method and call start() method
Threads
Threads  Extends Thread or Implementing Runnable Interface...; Runnable is better solution because of the following reasons: 1)Leaves more flexibility for the Runnable implementation to extend another class. 2
Please explain @interface with an example
) private Runnable runnable; where Runnable is an interface. Could you please
Please explain @interface with an example
= false) private Boolean isTrue; @InjectProperty(required = false) private Runnable runnable; where Runnable is an interface. Could you please explain what does
Threrad
as constructor argument. Thread should be created using Runnable interface.   ...=st2; } public void display() { Runnable readRun1 = new Runnable...) { } } }; Thread thread1 = new Thread(readRun1); thread1.start(); Runnable
java bits 2 - Java Interview Questions
Session implements Runnable, Clonable { public void run(); public Object clone(); } B. public class Session extends Runnable, Clonable { public void run.... public class Session implements Runnable, Clonable { public void run() { / do
multi threads - Java Beginners
{ Runnable runnable = new Runnable() { public void run() { System.out.println("count=" + getCount()); } }; Thread threadA = new Thread(runnable, "ThreadA"); threadA.start(); Thread.sleep(500); Thread threadB = new Thread(runnable
SCJP Module-8 Question-2
Given a sample code: 1    public class Test implements Runnable... the correct option: (A) Runnable r = new Runnable(); and Thread t = new Thread(r); (B) Runnable r = new Thread(); and Thread t = new Thread(r); (C) Runnable r
remopving errors incore java programming
remopving errors incore java programming  sir error in program:-file does not contain class runnable program:- class MyRunnable implements Runnable{ public void run(){ System.out.println("Run"); } public
remopving errors incore java programming
remopving errors incore java programming  sir error in program:-file does not contain class runnable program:- class MyRunnable implements Runnable{ public void run(){ System.out.println("Run"); } public
remopving errors incore java programming
remopving errors incore java programming  sir error in program:-file does not contain class runnable program:- class MyRunnable implements Runnable{ public void run(){ System.out.println("Run"); } public
Thread
Thread  class Extender extends Thread { Extender(Runnable run){ super(run); super.start(); //this.start... implements Runnable { public void run(){ System.out.println("ohhh
Tutorials   
Java Spring Hibernate Struts Training What does core Java include? java What are some way to learn Java quickly? Is it required to learn Java before learning Java Script? Is it necessary to learn java script before learning PHP? Are HTML5 and Java Script boosts Java career? Is Java object oriented? Fingerprint application with Java Uninstall Oracle Virtual Box JSON to HashMap Free Java online Training I want example of Control Statement in Java ANSI Color Codes with Python Create a Program that Calculates Input What is difference between JDK,JRE and JVM? How to see ubuntu version on server? How to get Page Source in Selenium (WebDriver) using Java? The path to the driver executable must be set by the webdriver.gecko.driver system property parse data from a link in java Java Program Qns using BlueJ How to fix HAX Kernel Module Is Not Installed error? Installing Audacity Looking for code Logic to check track changes & Coments in MSWord, MSWordx, MSExcel, MSExcelx is ON/OFF Installing JDK on Mac SAX Parser exception ERROR 601 (42P00): Syntax error. Encountered Thread java.lang.NoClassDefFoundError: org/apache/commons/fileupload/FileItemFactory How to install Ubuntu 16.04 LTS? HttpServletRequest cannot be resolved to a type in eclipse - Solved Unhandled event loop exception GC overhead limit exceeded Spring Data jpa with apache phoenix Caused by: java.lang.IllegalArgumentException: Not a host:port pair: PBUF o.a.h.h.z.RecoverableZooKeeper - Possibly transient ZooKeeper, quorum= com.thinkaurelius.titan.diskstorage.hbase.HBaseStoreManager class not found com.thinkaurelius.titan.diskstorage.hbase.HBaseStoreManager not found How to download and install Java 8 on Windows? How to uninstall JDK 7? How to install gtk-doc-tools package in Ubuntu? How to install Oracle JDK 8 on Ubuntu? ejabberd_ctl.beam not found - Solved How to convert date to UTC format in Java? How to install autoconf, automake and libtool in Ubuntu 15.10? How to convert current date to mm dd yyyy format in Java? How to convert current date to dd mm yyyy format in Java? How to stop window closing in "internalFrameClosing" event. How to find list of all index in Neo4j? neo4j-server.properties file location SASLError using PLAIN: not-authorized how to convert war file into .exe file using java code

Ads

 
Advertisement null

Ads