Runnable Interface || Thread in Java || Java example

  In the previous blog on Thread we have seen the implementation of Thread in java.In this topic Runnable interface is used to run threads.   Runnable interface Why do we need to use Runnable? To use a thread we need to extend our class with Thread class and every class can extend only class … Read more

Multithreading in java || Methods in Thread || Java example

  Java Multithreading : Java multithreading is a concept of doing multiple task at a same time.Thread is a light weight sub-process.Let’s see a example of how this concept is used in real time.   Consider a two classes Abc() and Def().And will use for loop to print numbers from 0 to 9 class Abc … Read more

Show Buttons
Hide Buttons