Java/Thread

+1 Arnab Banerjee · November 5, 2014
What is a 'Thread' in Java and what is meant by adding  'implements Runnable'  with a class in Java ? Please answer in a Simple manner.

Post a Reply

Replies

Oldest  Newest  Rating
+1 Kuroodo Ditory · November 5, 2014
Have you tried using the tutorials offered on this site?

https://buckysroom.org/videos.php?cat=25&video=17755

Here's a non-technical explanation.

Threads are a way to multi-task/do multiple things at once.

You need to implement Runnable so that you can use the Runnable interface. This allows you to use a method called Run. The Run method is the method that is called whenever you start a new thread, and basically is where you place the code that you will use in your thread.


(I kinda just copied off everything stated at the beginning of the video)

(Correct me anyone if I am wrong)
0 Arnab Banerjee · November 6, 2014
Oh! Thank you very much! and I got another question what is meant by Try  &  Catch in Java ?
-1 Homer Simpson · November 6, 2014
You can find the answer to that here.
https://buckysroom.org/forum/topic.php?id=2550
  • 1

Java / Android Development

107,080 followers
About

Very popular language used to create desktop applications, website applets, and Android apps.

Links
Moderators
Bucky Roberts Administrator