Question: Which of the following statements are true? Select the two correct answers. (a) In Java, the extends clause is used to specify the inheritance relationship.

Which of the following statements are true?

Select the two correct answers.

(a) In Java, the extends clause is used to specify the inheritance relationship.

(b) The subclass of a non-abstract class can be declared as abstract.

(c) All members of the superclass are inherited by the subclass.

(d) A final class can be abstract.

(e) A class in which all the members are declared private cannot be declared as public.

Step by Step Solution

3.40 Rating (156 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

a and b The extends clause is used to specify that a class ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Java Programming 8th Questions!