Exam 8: Console Input and Output

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

Late binding refers to the method definition being associated with the method invocation when the method is invoked at run time.

Free
(True/False)
4.8/5
(40)
Correct Answer:
Verified

True

____________ refers to the process of associating a method definition with a method invocation.

Free
(Multiple Choice)
4.8/5
(37)
Correct Answer:
Verified

A

Assigning an object of an ancestor class to a descendent class is called:

Free
(Multiple Choice)
4.8/5
(34)
Correct Answer:
Verified

D

A class with no abstract methods is called a

(Multiple Choice)
4.7/5
(36)

__________ binding refers to the method definition being associated with the method invocation when the code is compiled.

(Multiple Choice)
4.9/5
(34)

The final modifier is included before the definition of the method,then the method can be redefined in a derived class.

(True/False)
4.8/5
(26)

An abstract class must have the modifier ___________ included in the class heading.

(Multiple Choice)
4.8/5
(45)

The clone method return type is:

(Multiple Choice)
4.7/5
(48)

Implement the base class in the shoe hierarchy in number 8 above.

(Essay)
4.7/5
(39)

What is wrong with the following method definition? public abstract void doSomething(int count)

(Essay)
4.7/5
(35)

The clone method has ________ parameters.

(Multiple Choice)
4.7/5
(34)

Java uses late binding with private methods,methods marked final,or static methods.

(True/False)
4.9/5
(37)

Override the clone method inherited in the Tennis Shoes class created in number 11 above.

(Essay)
4.8/5
(37)

The method clone has one parameter and should return a copy of the calling object.

(True/False)
4.9/5
(26)

An abstract method cannot be modified by:

(Multiple Choice)
5.0/5
(34)

What are the advantages of polymorphism?

(Essay)
4.8/5
(26)

A class that has at least one abstract method is called an:

(Multiple Choice)
4.9/5
(37)

Explain the difference between early and late binding.

(Essay)
4.9/5
(41)

Override the clone method inherited in the Dress Shoes class created in number 10 above.

(Essay)
4.9/5
(32)

Java does not use late binding for methods marked as:

(Multiple Choice)
4.9/5
(33)
Showing 1 - 20 of 43
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)