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. Nice article, Thank you
View Tutorial          By: kumar kasimala at 2010-04-26 21:09:25

2. Unable to understand all the points, quiet confusi
View Tutorial          By: KB at 2015-04-15 10:11:14

3. Hi ngocanh, You are right. The client has to be in
View Tutorial          By: Emiley J at 2013-07-14 05:51:35

4. it's cool
View Tutorial          By: RInam Shah at 2011-06-20 02:48:20

5. Clear explaination..Thank You Sir...
View Tutorial          By: nishanth at 2014-06-16 08:58:04

6. hi everbody. i need to extract a output from one j
View Tutorial          By: keerthi at 2010-10-29 13:38:28

7. good for learners
View Tutorial          By: muhammed at 2012-11-20 10:38:28

8. how we can store a pdf file into database

View Tutorial          By: neelima at 2010-03-10 23:46:52

9. This works great.. :)

thanks a lot

View Tutorial          By: Ravi at 2010-07-03 23:34:46

10. I am getting following error, I am using samsung m
View Tutorial          By: Ashok at 2013-08-17 05:29:02