Join Now
Home Aptitude Reasoning DI VA GK CA CA Hindi Quiz Placements
Animal animal = new Dog();
Dog dog = new Animal();
Animal animal = new Animal();
None of the above
Compile-time Polymorphism
Run-time Polymorphism
Inheritance Polymorphism
Code reusability
Improved performance
Strong typing
Method overloading
Method overriding
Operator overloading
Method Overloading
Method Overriding
Both A and B
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.
final int a;
final void print();
final class Animal {}
All of the above
What is polymorphism in Java?
It is the ability of an object to take on many forms
It is the ability to define multiple methods with the same name but different signatures
It is the ability of an object to hide its implementation details
void print(int a, int b)
int print(int a, int b)
void print(String s)