You use the keyword ____ to achieve inheritance in Java.

A. inherit
B. extends
C. super
D. public


Answer: B

Computer Science & Information Technology

You might also like to view...

Which of the following statements is true?

a. Each object (instance) of the class shares the class’s instance variables. b. Most instance-variable declarations are preceded with the keyword public, which is an access modifier. c. Variables or methods declared with access modifier private are accessible only to methods of the class in which they’re declared. d. None of the above is true.

Computer Science & Information Technology

Write a statement for the following:

Print 200 with and without a sign.

Computer Science & Information Technology

What sort of evaluation involves the evaluation of expressions in each part of a compound, conditional Boolean expression only as much as necessary to determine whether the expression is false?

A. sequential B. sequence C. smart D. short-circuit

Computer Science & Information Technology

What are the four categories of linear implementations of tables?

What will be an ideal response?

Computer Science & Information Technology