Here are three overloaded methods:
public static void method(int i) {
System.out.println("int");
}
public static void method(long l) {
System.out.println("long");
}
public static void method(char c) {
System.out.println("char");
}
Here is an invocation:
method('a');
What does the code output? Enter a string.