Hi,
If you have a Thread with a method run and method start and then you call w.start() the thread will be started and the method run will be called.
Then in this case why the method start is called? How can be called?
I hope you understand my question.
Thank you!
About Question enthuware.ocpjp.v7.2.1516 :
Moderator: admin
-
- Posts: 2
- Joined: Sun Mar 24, 2013 11:29 am
- Contact:
-
- Site Admin
- Posts: 10388
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.ocpjp.v7.2.1516 :
In this question, an object of Worker class is being created. This class has a public method named start, which any one can call. This part has nothing to do with threads. It is just a like calling any other method on an object.
Who is online
Users browsing this forum: No registered users and 9 guests