PrepAway - Latest Free Exam Questions & Answers

Which of the following is true about the code above?

Consider the following the code:
public boolean onCreateOptionsMenu(Menu menu) {
MenuInflater inflater = getMenuInflater();
inflater.inflate(R.menu.game_menu, menu);
return true;
}
Which of the following is true about the code above?

PrepAway - Latest Free Exam Questions & Answers

A.
The code is auto generated and should not be edited

B.
This method handles clicks and assign actions to menu items

C.
This function inflates an XML file in the res/menu folder into menu items

D.
This method inflates an XML file in the res/layout folder into layout.

2 Comments on “Which of the following is true about the code above?


Leave a Reply

Your email address will not be published. Required fields are marked *