---
title: "try catch finally的递归调用"
author: "bd2007"
date: "2011-10-14T08:37:38Z"
tags: []
categories: ["编程语言"]
slug: "try-catch-finally"
draft: false
lastmod: "2011-10-14T08:37:38Z"
id: 1195576
url: "https://bd2007.iteye.com/blog/1195576"
---

```java
private static void foo() {   	    try {   	        system.out.println("try");   	        foo();   	    } catch (throwable e) {   	        system.out.println("catch");   	        foo();   	    } finally {   	        system.out.println("finally");   	        foo();   	    }   	}   	  	public static void main(string[] args) {   	    foo();   	}  
```

想了半天还是不明白到底输出是什么形式的，希望大神门都能告诉小弟一声！