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



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. Hi Nithya,
yes you can do that see the tut

View Tutorial          By: Ramlak at 2009-03-04 01:20:01

2. I want inserted switch statement in my program,
View Tutorial          By: shah at 2011-02-07 01:11:12

3. i need scjp questions and information
View Tutorial          By: raja at 2010-03-29 08:05:35

4. Hi,
The code runs fine on my emulator even

View Tutorial          By: Ramin at 2011-07-07 07:23:45

5. Thanks a lot for this nice tutorial, it is very he
View Tutorial          By: Ted at 2014-02-07 12:50:24

6. This is the help full sites for diploma student
View Tutorial          By: Tanuja at 2013-08-11 09:41:55

7. nice example
View Tutorial          By: pavang at 2010-07-20 01:16:22

8. How can I store a file in device internal memory a
View Tutorial          By: Fabio at 2014-11-20 11:25:41

9. Thanks Steven, That is an exhaustive list of diffe
View Tutorial          By: Robert at 2008-12-08 22:17:47

10. article is good but I would have liked to get more
View Tutorial          By: Bharat Agrawal at 2010-09-25 22:18:40