nerdexam
CompTIA

ADR-001 · Question #7

ADR-001 Question #7: Real Exam Question with Answer & Explanation

Sign in or unlock ADR-001 to reveal the answer and full explanation for question #7. The question stem and answer options stay visible for context.

Question

Which of the following describes what is wrong with the following sample code? public class MyActivity extends Activity{ public void onCreate(Bundle myBundle){ foo( ); } }

Options

  • AThe method onCreate must be private.
  • BA developer cannot extend Activity.
  • CA call is missing to super.onCreate(mybundle).
  • DThe class MyActivity must be private.

Unlock ADR-001 to see the answer

You've previewed enough free ADR-001 questions. Unlock ADR-001 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Full ADR-001 Practice