I\'m talking about programming in android.
In early days I thought that, finish() closes current activity and go back to the previous
finish()
According to android Developer -
Call this when your activity is done and should be closed. The ActivityResult is propagated back to whoever launched you via onActivityResult().
System.exit(0)
The VM stops further execution and program will exit.