About Question enthuware.ocpjp.v7.2.1516 :

Help and support on OCA OCP Java Programmer Certification Questions
1Z0-808, 1Z0-809, 1Z0-815, 1Z0-816, 1Z0-817

Moderator: admin

Post Reply
beasanca
Posts: 2
Joined: Sun Mar 24, 2013 11:29 am
Contact:

About Question enthuware.ocpjp.v7.2.1516 :

Post by beasanca »

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!

admin
Site Admin
Posts: 10388
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

Re: About Question enthuware.ocpjp.v7.2.1516 :

Post by admin »

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.

Post Reply

Who is online

Users browsing this forum: No registered users and 6 guests