Sapient Company Programming

Following is the list of Activity Lifecycle methods along with the next method that can be invoked in the Activity Lifecycle. Which of the following options is/are correct?

1) onCreate() --> onStart()
2) onRestart() --> onStart()
3) onDestroy() --> No method is called
4) All of the given options

Read Solution (Total 1)

Sapient Other Question

Which of the following statements is/are false about Services in Android?

A. Services are used for repetitive and potentially long running operations such as Internet downloads.
B. Services are less likely to be terminated by the Android system.
C. Services cannot be assigned higher priority than Foreground activities.

1) Only B
2) Only C
3) B and C
4) none of the given options
Which of the following statements is/are correct about Application Object?

A. The application object is created whenever an Android component starts.
B. The application object starts in a new process with a unique ID under a unique user.
C. The application obejct starts before any components and runs at least as long as another component of the application runs.

1) A, B and C
2) B and C
3) Only A
4) Only C