What does the following line of code achieve?
Intent intent = new Intent(FirstActivity.this, SecondActivity.class );
What does the following line of code achieve?
Intent intent = new Intent(FirstActivity.this, SecondActivity.class );
The line of code in question 'Intent intent = new Intent(FirstActivity.this, SecondActivity.class);' creates an explicit intent. An explicit intent specifies the exact component inside the app that should be launched. In this case, it indicates that the activity 'SecondActivity' should be launched from 'FirstActivity'. Options C and D are indeed identical, so either would be correct.
Both C and D options are same
D. Create an explicit Intent