Answer:
Function overloading allows methods with the same name but different parameter lists
class Test {
void display(int a, int b) {
System.out.println("Method 1");
}
void display(double a, double b) {
System.out.println("Method 2");
}
public static void main(String[] args) {
Test obj = new Test();
obj.display(10, 10.0);
}
}
Answer:
Method 2
Answer:
Constructors can be overloaded using different signatures