I have following example
Given the following class definition, which of the following methods could be legally placed after the comment
1)public void amethod(
String s, int i){}
2)public int amethod(int i, String s){}
3)public void amethod(int i, String mystring){}
4) public void Amethod(int i, String s) {}
Answer should be 1 , 2. 1 has parameters altered, which makes it different from one in class (I dont understand what different does it make though) and 2 has different type so its different from one in class.
Answer is 1 and 4. So is amethod() and Amethod() are two different methods ?
Thanks