Intent intent = new Intent(getApplicationContext(), SecondActivity.class);
startService(intent);
What i understood is, till this line of code "SecondActivity object" is not created and we are sending Runtime data of SecondActivity to Intent. So, what i think is at runtime compiler adds some extra code to second Activity.
I know this is related to Reflection but still i don't understand correctly. Does ".class" denotes a "static Variable class" of type "Class" in "SecondActivity" class at runtime, something like,
static Class class = .......
Are we accessing Class object through "class static Variable"? Does compiler at runtime adds this static variable through which we are getting "Class object" of SecondActivity? Is my understanding correct?