Multiple choice technology programming languages

Select two methods that correctly overload the following method? (Assume that all necessary packages have been imported). byte bMethod(short i) throws Exception {...}

  1. int bMethod(int i) throws IOException{...}

  2. protected int bMethod(short s) throws FileNotFoundException{...}

  3. private String aMethod(byte b,short s) throws Exception{...}

  4. char bMethod(String s) throws RuntimeException{...}

  5. int bMethod(short sh){...}

Reveal answer Fill a bubble to check yourself
A,D Correct answer
Explanation

Overloading requires a change in the method's parameter list. Changing only the return type or exceptions does not overload a method. Option 514452 changes the parameter from short to int, and option 514455 changes it to String, making both valid overloads.