Solved

Which of the Following Is the Correct Syntax for Displaying

Question 29

Multiple Choice

Which of the following is the correct syntax for displaying a toast message for a long length of time?


A) Toast.makeText(MainActivity.this, Toast.LENGTH_LONG.show("A toast message") ;
B) Toast.makeText(MainActivity.this, "A toast message", Toast.LENGTH_LONG) .show( ) ;
C) Toast.LENGTH_LONG(MainActivity.this, "A toast message", Toast.makeText) .show( ) ;
D) Toast.show(MainActivity.this, "A toast message", Toast.makeTest) .LENGTH_LONG;

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions