Which of the following lines of code starts activity Activity2 from a current activity Activity1?

Which of the following lines of code starts activity Activity2 from a current activity Activity1?
A . Intent intent = new Intent(this,new Activity2()); startActivity(intent);
B . Intent intent = new Intent(new Activity2()); startActivity(intent);
C . Intent intent = new Intent (Activity1.class,Activity2.class); startActivity(intent);
D . Intent intent = new Intent(this,Activity2.class); startActivity(intent);

Answer: D

Latest AND-401 Dumps Valid Version with 228 Q&As

Latest And Valid Q&A | Instant Download | Once Fail, Full Refund

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments