jvm研究——异常处理
public class Test {public static boolean test(boolean b) {while (b) {try {return true;} finally {/*break; 始终返回falsecontinue; javac编译再java执行会出现死循环在eclipse中甚至会出现报错:提示找到不main classreturn false; 始终返回falsethrow new RuntimeException("");抛出异常 */}}return false;}public static void main(String[] args) {System.out.println(test(true));}}?建议:在写finally语句的时候,尽量避免非正常结束!