0 votes
in JAVA by
What are the two ways for creating a thread in Java?

1 Answer

0 votes
by

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
0 votes
+1 vote
asked May 6, 2021 in JAVA by SakshiSharma
...