fork download
  1. public class Main {
  2. public static void main(String[] args) {
  3. System.out.println(teste());
  4. }
  5.  
  6. public static boolean teste() {
  7. try {
  8. System.out.println("Parte 1");
  9. return false;
  10. } finally {
  11. System.out.println("Parte 2");
  12. }
  13. }
  14. }
  15.  
  16. //https://pt.stackoverflow.com/q/42313/101
Success #stdin #stdout 0.06s 32484KB
stdin
Standard input is empty
stdout
Parte 1
Parte 2
false