What will happen if super.oncreate() from oncreate() function of activity is commented?

Answer: Run time exception, super not called.

Description:
All activity's life cycle functions have to call super class methods, as super class Activity will do lot of helping functionalities for derived class. If you don't call it will throw run time exception.

No comments:

Post a Comment