-1

A Java program execution starts from main() method. Right? Since Android apps run on Java, Then why we didn't create a main() method in Android studio?

Zoe
  • 27,060
  • 21
  • 118
  • 148
Jithin Jude
  • 840
  • 14
  • 19

1 Answers1

1

There's one, but you don't need to see it. Android takes care of threading and keeping threads organized for you, see here.

Moreover, the entry point for an activity is the onCreate() method, so all initialization is normally done in there. The first activity run by your app is normally specified in the manifest file under the launcher keyword.

See here to know more about how android runs the launcher activity.

Levi Moreira
  • 11,917
  • 4
  • 32
  • 46