Join Now
Home Aptitude Reasoning DI VA GK CA CA Hindi Quiz Placements
Dog
Animal
Mammal
None of the above
Method Overloading
Method Overriding
Both A and B
void print(int a, int b)
int print(int a, int b)
void print(String s)
public void print() {}
public static void print() {}
public final void print() {}
Code reuse
Flexibility
Encapsulation
Simplicity
void print()
Static methods can be overridden in Java
Static methods can be overloaded in Java
Static methods can participate in polymorphism in Java
The method name must be the same but the parameter list must be different.
The method name and parameter list must be the same but the return type can be different.
The method name and parameter list must be the same but the access modifiers can be different.