Computer Science, asked by sheetalral7265, 1 year ago

Explain different way of using thread?

Answers

Answered by rahulgrover033
0

The thread could be implemented by using runnable interface or by inheriting from the Thread class. The former is more advantageous, 'cause when you are going for multiple inheritance, the only interface can help.

Answered by anshikasharma62
0

Garbage collector thread is a daemon thread. Daemon thread is a low priority thread which runs intermittently in the back ground doing the garbage collection operation or other requests for the java runtime system. It's not a thread from a java.lang.Thread perspective at least.

HOPE IT HELPS YOU.....〰️〰️➿➿

Similar questions