41. Is it possible to call the run() method directly to start a new
thread?
No, it's not possible at all. You need to call the start method to create a new thread
otherwise run method won't create a new thread. Instead, it will execute in the
current thread.
42. Is it possible that each thread can have its stack in
multithreaded programming?
Of course, it is possible. In multithreaded programming, each thread maintains its
own separate stack area in memory because of which every thread is independent of
each other rather than dependent.
Conclusion
43. Conclusion
Overall, multithreading is a very essential part of Java and modern so ware
development. It is very helpful in making the program more efficient and also
reduces the usage of storage resources. In this article, we have discussed important
interview questions related to multithreading along with answers that were asked
mostly in the Interviews and will help you to crack your interviews.
Recommended Tutorials:
Practice
Java Developer Skills
Page 35
© Copyright by Interviewbit