Can we say method is a thread or vice versa in java? If not please tell what the thread is? what's the necessary to use threads? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

Can we say method is a thread or vice versa in java? If not please tell what the thread is? what's the necessary to use threads?

I am trying to understand what thread actually is. I can't visualise what exactly thread is? please help. Thanks!!!

20th Apr 2017, 1:17 AM
Sribalaji A
Sribalaji A - avatar
1 Answer
+ 9
A process is a program loaded into memory for execution. A thread is a light weight process. It's not the same as a method.
20th Apr 2017, 1:36 AM
Krishna Teja Yeluripati
Krishna Teja Yeluripati - avatar