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.

Why the return type is not included in the method signature?

0
Posted

Why the return type is not included in the method signature?

0

Author: sreekanth pujari (http://www.jguru.com/guru/viewbio.jsp?EID=1343938), Aug 1, 2007Emil, For a moment lets assume that the return type is included in the method signature. Now look at the following snippet of code.1 Class A2 {3 public int aMethod(int a, int b)4 {5 ….6 return 0;7 }8 public String aMethod(int a, int b)9 {10 ….11 return (0+””);12 }13 public static void main(String args[])14 {15 new A().

Related Questions

What is your question?

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

Experts123