Question

Which of the following is true about inheritance vs. composition? Group of answer choices inheritance uses...

Which of the following is true about inheritance vs. composition?

Group of answer choices

inheritance uses subclass/superclass relations; composition uses interface implementations

neither inheritance nor composition relies upon superclass/subclass relations

composition uses subclass/superclass relations; inheritance uses interface implementations

both inheritance and composition rely upon superclass/subclass relations

2.

Java performs compile-time type checking based on the __________ type of a variable.

Group of answer choices

immutable

actual

primitive

apparent

3.

What is a class called that represents the more general entity in an inheritance hierarchy?

Group of answer choices

interface

subclass

superclass

default class

4.

Which of the following statements about comparing objects is correct?

Group of answer choices

the equals() method is used to check whether two references are to the same object

the equals() method is used to compare the equivalency of two objects

for all immutable objects, the equals() method and the == operator always behave the same

the == operator is used to compare the equivalency of two objects

5.

All rodents are mammals, and all canines are mammals. No canines are rodents, and no rodents are canines. Which hierarchy best captures this information?

Group of answer choices

Mammal is a superclass of Rodent, and Mammal is a superclass of Canine

Mammal is a superclass of Rodent, and Rodent is a superclass of Canine

Rodent is a superclass of Mammal, and Canine is a superclass of Mammal

Mammal is a superclass of Canine, and Canine is a superclass of Rodent

Homework Answers

Answer #1

Answer 1:
inheritance uses subclass/superclass relations; composition uses interface implementations
Answer 2:Actual type of variable
Answer 3:superclass
all common features are kept at parent class
Answer 4:the equals() method is used to compare the equivalency of two objects

Answer 5:
Mammal is a superclass of Rodent, and Mammal is a superclass of Canine

NOTE : PLEASE COMMENT BELOW IF YOU HAVE CONCERNS.
I AM HERE TO HELP YOUIF YOU LIKE MY ANSWER PLEASE RATE AND HELP ME IT IS VERY IMP FOR ME

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
According to the coupon effect, which of the following if true? Group of answer choices All...
According to the coupon effect, which of the following if true? Group of answer choices All else equals, high coupon bond experiences larger change in price when rate changes All else equals, high coupon bond experiences smaller change in price when rate changes None of the above. All else equals, low coupon bond experiences smaller change in price when rate changes
1. Which of the following is true about binary fission? Group of answer choices A the...
1. Which of the following is true about binary fission? Group of answer choices A the original two chromosomes in a bacterial cell each replicate and are placed into two new cells B the chromosome is copied, then attaches to the cell membrane by spindle fibers C there is no nuclear membrane to break down and reform D lysis of the existing cell wall of bacteria occurs during the process 2. DNA:   Group of answer choices A replication is described...
Which of the following statements is true: Group of answer choices None of the other answers...
Which of the following statements is true: Group of answer choices None of the other answers is correct. In the long run, under perfect competition; there are no fixed costs In the long run, under perfect competition; price equals the minimum of the marginal cost In the long run, under perfect competition; firms experience a perfectly inelastic demand curve In the long run, under perfect competition; price equals the maximum of the marginal cost
1) Which of the following is NOT true about conjoint analysis? Group of answer choices a....
1) Which of the following is NOT true about conjoint analysis? Group of answer choices a. In a conjoint design, too many attributes may cause fatigue in the respondent and few attributes may not be comprehensive. b. A conjoint study process consists of three stages; the first stage is the designing the study, the second stage is obtaining data from respondents, and the third stage is evaluating product design options. c. Conjoint designs allow the customer to make trade-offs among...
Which of the following is not true of a simple random sample? Group of answer choices...
Which of the following is not true of a simple random sample? Group of answer choices Each draw is independent of other draws in the sample. It is free from selection bias. It is the preferred sampling method for creating a confidence interval or performing testing. Each possible sample has an equal chance of being chosen.
Which of the following is not true of the payback period method? Group of answer choices...
Which of the following is not true of the payback period method? Group of answer choices There is no objective criterion for what is an acceptable payback period. It fails to take into account a project’s net cash flows. It fails to take into account the time value of money. It fails to take into account a project’s net cash flows after the payback period.
Which of the following is true about Student’s t-models? Group of answer choices A. They are...
Which of the following is true about Student’s t-models? Group of answer choices A. They are unimodal and symmetric. B. They have fatter tails than the Normal model. C. As the degrees of freedom increase, the t-models look more and more like the Normal Model D. All of the above.
Which of the following is TRUE on the risk matrix? Group of answer choices A) I...
Which of the following is TRUE on the risk matrix? Group of answer choices A) I should transfer the infrequent risk that my dog eats a one-dollar bill. B) The most appropriate method for a grocery store to manage its high-frequency shoplifting risk is loss reduction. C) We should avoid the high-frequency risk of death caused by dangerous jobs such as pearl diving without scuba. D) The most appropriate method to manage a high-frequency and high-severity risk is buying insurance....
19) Which of the following statements about teratogens is NOT true? Group of answer choices The...
19) Which of the following statements about teratogens is NOT true? Group of answer choices The time of exposure to a teratogen impacts the type and degree of damage to the fetus. Female fetuses are far more likely to be affected by teratogens than male fetuses. Teratogens come in a large variety of forms. The greater the dose of a teratogen, the greater the effect.
Which of the following statements about the nasal cavity is TRUE? Group of answer choices a....
Which of the following statements about the nasal cavity is TRUE? Group of answer choices a. The nasal conchae and meatuses help to decrease air turbulence. b. The structure of the nasal cavity helps to cool down inhaled air on hot days c. The respiratory mucosa helps to dry inhaled air d. none of these are true
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT