Question: Java Programming Choose best answer for each question. Question: An abstract method in an abstract class is best described as: A. a guarantee that the

Java Programming

Choose best answer for each question.

Question: An abstract method in an abstract class is best described as:

A.

a guarantee that the method will be overridden .

B.

a method that is required to be called by subclasses of the abstract class.

C.

a method that is never meant to be used in concrete subclasses.

D.

an invisible method.

E. a contract that says that any concrete subclass is guaranteed to have a method body for the abstract method.

Question: An abstract class in Java

A.

cannot be a superclass of any class.

B.

can only have data members, no methods.

C.

cannot be a subclass of any class.

D.

cannot be instantiated.

E. can only have methods, no data members

Question: An abstract class in Java is

A.

not meant to be subclassed.

B.

a class that has abstract data members.

C. meant to be used only in container classes.

D.

a class that can be instantiated only once.

E. a class that has zero or more abstract methods.

Question: An abstract method

A. must return a primitive data type.

B.

cannot be overridden.

C.

must override a method in a concrete subclass.

D.

cannot return a primitive data type.

E. must be overridden and given a method body in a subclass.

Question: An abstract method is a method (choose the best answer):

A.

that can only be used in superclasses.

B.

that cannot be overridden.

C.

without a return type.

D.

without a method body.

E.

without input parameters.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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 Databases Questions!