this is a question from javacaps mock exam
Given the following class definition, which of the following methods could be legally placed after the comment ?
public class Test{
public void amethod(int i,
String s){}
//Here
}
A) public void amethod(String s, int i){}
B) public int amethod(int i, String s){}
C) public void amethod(int i, String mystring){}
D) public void Amethod(int i, String s) {}
the answre is a & d but according to me its only a because Amethod() totally a distinct method not a overload