Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Re[2]: Why the return type is not included in the method signature?

0
Posted

Re[2]: Why the return type is not included in the method signature?

0

Author: Kamal Chandana Mettananda (http://www.jguru.com/guru/viewbio.jsp?EID=1178395), Apr 27, 2006In method overloading you have to change the method singature while keeping the name unchanged.There’s nothing to do with thereturn typeorthrows clauseregarding method signature.As you guys have discussed in above posts, only the parameter types with the order metters.eg:publicObjectdoSomething(String param1, Object param2)throws Exception;publicvoiddoSomething(Object param2, String param1);What matters is only the parameter types with the order.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123