Exam AND-401 All QuestionsBrowse all questions from this exam
Question 37

Which of the following is NOT a correct constructer for ArrayAdapter?

    Correct Answer: A

    The provided constructors for the ArrayAdapter class in Android include variants that take a Context, a resource ID, an optional TextView resource ID, and a list of objects. The option 'ArrayAdapter(Context context)' is not a valid constructor for ArrayAdapter as it lacks the necessary resource identifier parameter. Valid constructors typically require at least a context and a resource parameter. Hence, 'ArrayAdapter(Context context)' is not a correct constructor.

Discussion
MmadiOption: C

C. ArayAdpater (Context context , int resource, int textViewResourceId)