Answer:
1. doSomething(5);
B
2. doSomething (5.2, 9);
F
3. doSomething(3, "Hello");
E
4. doSomething("Able", 8);
D
5. doSomething ("Alfred");
A
6. doSomething (3.6);
C
7. doSomething("World");
A
Explanation:
Method overloading is an ability available in some programming languages such as Java to enable two or more methods share the same name but with different argument list.
For example, a method with a single string argument doSomething(String x). The method can be overloaded by having a different argument list as follows:
When calling the method with a specified argument list such as doSomething("Able", 8), only the matched version (e.g. doSomething(String x int y)) will be invoked and print out D.