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(int s, String i){}

  2. public void Amethod(int i, String s) {}

  3. public void amethod(int i, String mystring){}

  4. None of the above

  5. public int amethod(int i, String s){}


Correct Option: B

Find more quizzes: