1. |
Method overriding is combination of inheritance and polymorphism?
|
||||
Answer:
Option (a) |
2. |
Which of this keyword can be used in a subclass to call the constructor of superclass?
|
||||||||
Answer:
Option (a) |
3. |
What is the process of defining a method in a subclass having same name & type signature as a method in its superclass?
|
||||||||
Answer:
Option (b) |
4. |
Which of these keywords can be used to prevent Method overriding?
|
||||||||
Answer:
Option (d) |
5. |
Which of these is correct way of calling a constructor having no parameters, of superclass A by subclass B?
|
||||||||
Answer:
Option (d) |
6. |
Which of these is supported by method overriding in Java?
|
||||||||
Answer:
Option (c) |
7. |
Which of this keyword must be used to inherit a class?
|
||||||||
Answer:
Option (d) |
8. |
Which of these is correct way of inheriting class A by class B?
|
||||||||
Answer:
Option (c) |
9. |
What is not type of inheritance?
|
||||||||
Answer:
Option (b) |
10. |
Using which of the following, multiple inheritance in Java can be implemented?
|
||||||||
Answer:
Option (a) |