• Shuffle
    Toggle On
    Toggle Off
  • Alphabetize
    Toggle On
    Toggle Off
  • Front First
    Toggle On
    Toggle Off
  • Both Sides
    Toggle On
    Toggle Off
  • Read
    Toggle On
    Toggle Off
Reading...
Front

Card Range To Study

through

image

Play button

image

Play button

image

Progress

1/13

Click to flip

Use LEFT and RIGHT arrow keys to navigate between flashcards;

Use UP and DOWN arrow keys to flip the card;

H to show hint;

A reads text to speech;

13 Cards in this Set

  • Front
  • Back

Polymorphic method invocations apply only to overridden instance methods.

True

The object's type determines whichmethods can be called

False


The reference variable's type (not the object's type) determines whichmethods can be called!

constructors can be overridden

False


constructors can be overloadedbut not overridden

With respect to the method it overrides, the overriding method...


- Must have exactly the same return type or its supertype

False


Must have the same return type, except that, as of Java 5, the return typecan be a subclass, and this is known as a covariant return

With respect to the method it overrides, the overriding method...


- could have a more restrictive access modifier

False


Must not have a more restrictive access modifier

With respect to the method it overrides, the overriding method...


- May have a less restrictive access modifier

True


May have a less restrictive access modifier


Parent: protected -> Child: public

With respect to the method it overrides, the overriding method...


- May throw broader checked exceptions

False


Must not throw new or broader checked exception

With respect to the method it overrides, the overriding method...


- May throw fewer or narrower checked exceptions, or any uncheckedexception

True


May throw fewer or narrower checked exceptions, or any uncheckedexception

Overloaded methods could have the same argument lists

False


Must have different argument lists

Object type (not the reference variable's type) determines which overriddenmethod is used at runtime

True


Object type (not the reference variable's type) determines which overriddenmethod is used at runtime

Reference type determines which overloaded method will be used atcompile time.

True


Reference type determines which overloaded method will be used atcompile time.

Upcasting takes effect when you have a reference variable that refers to a subtypeobject: you can assign it to a reference variable of the subtype.

False


It's about Downcasting: If you have a reference variable that refers to a subtypeobject, you can assign it to a reference variable of the subtype. You mustmake an explicit cast to do this, and the result is that you can access thesubtype's members with this new reference variable.

Upcasting: You can assign a reference variable to a supertype referencevariable explicitly or implicitly.

True


Upcasting: You can assign a reference variable to a supertype referencevariable explicitly or implicitly.