About Question com.enthuware.ets.scjp.v6.2.507 :

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

Moderator: admin

Post Reply
ETS User

About Question com.enthuware.ets.scjp.v6.2.507 :

Post by ETS User »

Can u override run()?

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

Re: About Question com.enthuware.ets.scjp.v6.2.507 :

Post by admin »

Yes, certainly. It is like any other method in this respect.
If you like our products and services, please help us by posting your review here.

deepaarun@live.com

Re: About Question com.enthuware.ets.scjp.v6.2.507 :

Post by deepaarun@live.com »

i mean to say can i override run() twice in a program?

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

Re: About Question com.enthuware.ets.scjp.v6.2.507 :

Post by admin »

I am not sure what you mean by "in the same program". You cannot have the have the same method (i.e. methods with same signature, where signature means method name and parameter list) twice in the same class.

There is no concept of a program in java as such.
If you like our products and services, please help us by posting your review here.

Post Reply

Who is online

Users browsing this forum: No registered users and 51 guests