About Question enthuware.ocajp.i.v7.2.1008 :

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

Moderator: admin

Post Reply
st.lisker
Posts: 22
Joined: Sat Jun 30, 2018 6:11 am
Contact:

About Question enthuware.ocajp.i.v7.2.1008 :

Post by st.lisker »

Hello. You said
The second pair of methods will not compile correctly, since their method signatures are same
Is return type not a part of the method signature?
The second pair is:
2.
void perform_work(int time){ }
int perform_work(int speed){return speed ;}

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

Re: About Question enthuware.ocajp.i.v7.2.1008 :

Post by admin »

No, the return type is never a part of a method signature. Which book are you following? It should have explained that.
If you like our products and services, please help us by posting your review here.

st.lisker
Posts: 22
Joined: Sat Jun 30, 2018 6:11 am
Contact:

Re: About Question enthuware.ocajp.i.v7.2.1008 :

Post by st.lisker »

The book of Mala Gupta . No, it was not there. Thank you! And the order of arguments changes the signature?

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

Re: About Question enthuware.ocajp.i.v7.2.1008 :

Post by admin »

Yes, order of parameter types is important. parameter names are not important.
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 93 guests