PrepAway - Latest Free Exam Questions & Answers

what is wrong with the following sample code?

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

PrepAway - Latest Free Exam Questions & Answers

A.
The method onCreate must be private.

B.
A developer cannot extend Activity.

C.
A call is missing to super.onCreate(mybundle).

D.
The class MyActivity must be private.

Explanation:


Leave a Reply