can i call threads run method java interview question and answer

512 views · Published 13 October 2012 · 2:28 · Indexed 12 October 2026

Channel: Interview DOT · 2012 · Science & Technology

Watch on YouTube

Click here - https://www.youtube.com/channel/UCd0U_xlQxdZynq09knDszXA?sub_confirmation=1 to get notifications. JOB VACANCIES IN TOP IT / NOT-IT COMPANIES

UPLOAD YOUR RESUME IN 1 MINUTE ! ! !
http://www.interviewdot.com/upload-resume/uploadresume.htm

http://www.interviewdot.com http://www.interviewdot.com http://www.interviewdot.com

Welcome to www.InterviewDot.com     How to for java prepare for Interview Questions :  

Can I call "run()" method using thread object ? What happens if I call run method ? -- Java Interview Questions and Answers.

Can I call "run()" method using thread object ? What happens if I call run object ?

Yes, you can call the "run()" method, but JVM will not consider it as a thread execution rather it is a normal method call.
Ie no separate call stack will be launched when you call "run()" method explicitly.


Public static void main(String[] args){
 MyThread thread = new MyThread ();
 Thread.run();   no separate call stack will be launched. Thread.start();
}





For more Interview questions and answers  - logon to www.InterviewDot.com - India's Top Interview Guide.

http://www.interviewdot.com http://www.interviewdot.com http://www.interviewdot.com

More from this channel