Question
Which of the following statements is true? (Choose one.)
- A. Object references can be converted in assignments but not in method calls.
- B. Object references can be converted in method calls but not in assignments.
- C. Object references can be converted in both method calls and assignments, but the rules governing these conversions are very different.
- D. Object references can be converted in both method calls and assignments, and the rules governing these conversions are identical.
- E. Object references can never be converted.
D.
Note
Method-call and assignment conversions are governed by the same rules concerning the legal relationships between the old and new types.
PreviousNextRelated