in JAVA by (32.2k points)
What are the two ways for creating a thread in Java?

1 Answer

0 votes
by (32.2k points)

Below are the two ways for creating a thread in Java

The two ways to create a thread are:

• Implement the Runnable interface.

• Extend the Thread

Related questions

0 votes
asked Oct 9, 2020 in JAVA by SakshiSharma (32.2k points)
0 votes
asked Jun 16, 2022 in JAVA by Robindeniel (20.8k points)
...