测试: [java] view plain copy @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); System.out.println("hello wofrld 1"); finish(); System.out.println("hello wofrld 2"); } 结果: [java] view plain copy hello wofrld 1 hello wofrld 2 总结: finish之后的代码将继续执行