Given the following class definition, which of the following methods could be legally placed after the comment
//Here
public class Rid{
public void amethod(int i,
String s){}
//Here
}
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) {}
Ans:1)&4)
Question: Is choice 2) is overriding though return type is different ?