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. Really superb.Simple code.Thanks.
View Tutorial          By: pradesh at 2010-04-30 01:09:57

2. Design program with given algorithm---


View Tutorial          By: siddhant at 2014-10-11 13:19:25

3. Nice explanation.But please explain left shift an
View Tutorial          By: Ramesh Kanagaraj at 2013-03-28 14:27:30

4. I have an apple computer and I cannot find the &qu
View Tutorial          By: Dylan at 2009-04-11 19:43:41

5. wehhh... so so so difficult
View Tutorial          By: sam at 2013-02-28 01:55:41

6. i am run code this rectify this error please some
View Tutorial          By: indiran at 2010-01-28 01:45:56

7. very nicely explained,
thank you

View Tutorial          By: Amin at 2010-04-14 09:40:30

8. Barely can understand it even I'm a NEWBIES ^^
View Tutorial          By: YieonChee at 2012-11-28 17:56:24

9. can't build the 2nd code in netbeans,here is the
View Tutorial          By: arshavin at 2010-04-14 23:19:33

10. very cool you said it! many thanks it's really coo
View Tutorial          By: ArAsh at 2008-12-11 06:41:13