Tag: Interface
How to Create a Thread in Java using Runnable Interface
In this article we will discuss how to create a thread in Java using Runnable Interface. Why do we need Runnable Interface We create threads to execute certain tasks in parallel. Every task is different from another Task. Tasks are usually encapsulated in its own class. Therefore, extending our Task class from Thread is not only an incorrect …
How to Create a Thread in Java using Runnable InterfaceRead More