In an activity, first open method onCreate or class constructor?

2

In a scenario where you have an activity with a constructor (public, of course) and the onCreate method which is part of its lifecycle. Which of the two will run first?

    
asked by anonymous 08.09.2016 / 18:45

1 answer

3
So, if a constructor is the first "method" to execute, before the others (even if there is the main method in the case of JAVA), then obviously the constructor will run before even onCreate () .

I hope I have helped!

    
08.09.2016 / 19:07