--
The code above produces the output “main” and not “myThread”. As can be seen in line two of the method, we invoke by mistake the method instead of . Hence, no new thread is started, but the method gets executed within the main thread.
The code above produces the output “main” and not “myThread”. As can be seen in line two of the method, we invoke by mistake the method instead of . Hence, no new thread is started, but the method gets executed within the main thread.
No comments:
Post a Comment