Comment on Tutorial - How to use 'implements Runnable' in Java By Emiley J



Comment Added by : Ashish

Comment Added at : 2014-07-25 08:44:08

Comment on Tutorial : How to use 'implements Runnable' in Java By Emiley J
Threads can be implemented by extending Thread class, implementing Runnable interface and Callable interface.

If you want to return an value or throw an exception then use Callable otherwise use Runnable as extending Thread class limits the Class inheritance and also makes the process heavy.

Below link can be useful if you want to find more:
<a href="http://newtechnobuzzz.blogspot.com/2014/07/different-ways-to-implement-threads-in.html">Different ways to implement Threads in Java</a>


View Tutorial



Ask a Question

Subscribe to Tutorials

Related Tutorials

Program using concept of byte long short and int in java

Update contents of a file within a jar file

Tomcat and httpd configured in port 8080 and 80

Java File

Java String

Count number of vowels, consonants and digits in a String in Java

Reverse a number in Java

Student marks calculation program in Java

Handling Fractions in Java

Calculate gross salary in Java

Calculate average sale of the week in Java

Vector in Java - Sample Program

MultiLevel Inheritance sample in Java

Multiple Inheritance sample in Java

Java program using Method Overriding

Archived Comments

1. Good day. I managed to get the code working but I
View Tutorial          By: thabiso at 2011-06-03 09:08:24

2. I want to enter data from a textbox to recordstor
View Tutorial          By: Rahul Maurya at 2010-04-10 01:04:51

3. VERY good info. Providing By YOU Thanx.
View Tutorial          By: Ravi singh at 2013-11-14 08:56:34

4. result = fact (n-1) * n;
i didn't got this

View Tutorial          By: praveen at 2011-08-07 20:22:09

5. i want to how to run a package and compile also
View Tutorial          By: sandhya at 2015-06-25 09:04:03

6. great answer...
View Tutorial          By: nagi ponnagani at 2011-04-29 14:11:21

7. I have loaded allthe 5 java files.But how to imple
View Tutorial          By: Bharat at 2010-11-01 23:28:14

8. ... it is nice site coz 8 can help students lyk me
View Tutorial          By: mayflor at 2011-06-29 03:57:51

9. i appreciate the article for being straight to the
View Tutorial          By: shey-poun at 2011-12-14 06:39:51

10. I do my projest in j2me.so please send me your ide
View Tutorial          By: sivasakthivel.s at 2011-06-22 13:26:54