adplus-dvertising
frame-decoration

Question

Which is the keyword used to implement inheritance in Java?

a.

extends

b.

implements

c.

instanceof

d.

None of the above

Posted under Java Programming

Answer: (a).extends

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Which is the keyword used to implement inheritance in Java?

Similar Questions

Discover Related MCQs

Q. You can not inherit a Superclass'es constructor even after using inheritance in Java. State TRUE or FALSE.

Q. A Subclass can become a Superclass to another class extending from it in Java. State TRUE or FALSE.

Q. When a Class inherits two superclasses (not in Java), it is called ____ inheritance.

Q. In a Multi-Level Inheritance in Java, the last subclass inheritsmethods and properties of ____.

Q. In a Multi Level Inheritance Class-C inherits from Class-B and Class-B inherits from Class-A. State TRUE or FALSE.

Q. In a Single inheritance, Class Binherits only from Class A. State TRUE or FALSE.

Q. What are the types of Inheritances(Whether Java supports or not) available in Object-Oriented Programming Languages?

Q. You should use Inheritance when there is an IS-A relationship between classes. State TRUE or FALSE.

Q. Java language supports ___ type of inheritance.

Q. The class that inherits an already defined class is called ___.

Q. The class that is being inherited or subclassed is called ___.

Q. What are the features reused using Inheritance in Java?

Q. What are the features of an Object Oriented Programming (OOPs)?

Q. Which of these is supported by method overriding in Java?

Q. Which of these is correct way of calling a constructor having no parameters, of superclass A by subclass B?

Q. Which of these keywords can be used to prevent Method overriding?

Q. What is the process of defining a method in a subclass having same name & type signature as a method in its superclass?

Q. Which of this keyword can be used in a subclass to call the constructor of superclass?

Q. Does Java support multiple level inheritance?

Q. What would be the result if a class extends two interfaces and both have a method with same name and signature?