AND-401 Exam QuestionsBrowse all questions from this exam

AND-401 Exam - Question 37


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

Show Answer
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

1 comment
Sign in to comment
MmadiOption: C
Dec 31, 2022

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