Java – Ways to Define a Thread | Code Factory


Index Page : Link

Donate : Link

Medium Link : Link

Applications : Link

A Thread is a flow of execution, every Thread is a seperate independant job is there.

We can define a Thread in the following 2 ways :

  1. Defining a Thread by Extending Thread Class
  2. Defining a Thread by Implementing Runnable Interface

One thought on “Java – Ways to Define a Thread | Code Factory”

Leave a comment