nerdexam
IBM

C2170-010 · Question #12

C2170-010 Question #12: Real Exam Question with Answer & Explanation

The correct answer is C. It does not compile because the MaintainPerson should not extend the class serverworkshop.intf.MaintainPerson. See the full explanation below for the reasoning.

Question

Examine the following piece of code: [Image of Java code snippet: serverworkshop.impl.MaintainPerson] Which of the following statements about this piece of code is true?

Options

  • AIt does not compile because an import statement is missing
  • BIt does not compile because the PersonDtils object must be obtained from a factory class
  • CIt does not compile because the MaintainPerson should not extend the class serverworkshop.intf.MaintainPerson
  • DIt compiles without errors

Community Discussion

No community discussion yet for this question.

Full C2170-010 Practice