Suppose i have one simple function in my program. Whenever i call that function does a new thread or process is spawned to execute the function or it is executed under the main thread memory space only. Please help… any pointers will be appreciated.
Thanks in advance,
Rupesh
When you call a method in Java it will run within the same thread of execution as the code that called it. Unless you explicitly create a new thread within the body of the method.