while creating a thread in java, there is two ways such as Extending threads and Implement runnable Interface.
I am unaware of Which is the better way of creating threads?
while creating a thread in java, there is two ways such as Extending threads
Share
Obvously, implementing Runnable is by far better since it potentially allow you to use thread pools and execution queue that you couldn’t use with Thread, besides the obvious fact your thread number is limited in the JVM.