Join Now
Home Aptitude Reasoning DI VA GK CA CA Hindi Quiz Placements
Animal
Dog
Mammal
None of the above
Method overloading
Method overriding
Operator overloading
Animal animal = new Dog();
Dog dog = new Animal();
Animal animal = new Animal();
Dog dog = (Dog) animal;
Method Overloading
Method Overriding
Both A and B
final int a;
final void print();
final class Animal {}
All of the above
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.
Static methods can be overridden in Java
Static methods can be overloaded in Java
Static methods can participate in polymorphism in Java
override
super
final
extends