Java - Polymorphism
What will be the output of the following Java code?
class Display {
void show(int x) { System.out.println("Int: " + x); }
void show(String x) { System.out.println("String: " + x); }
}
public class Test {
public static void main(String[] args) {
Display d = new Display();
d.show(10);
d.show("Hello");
}
}