1234567891011121314151617181920 |
- package com.sf.javase.day11.exception;
- public class ExceptionTest {
- public static void main(String[] args) {
- int result = test();
- System.out.println(result); //
- }
- public static int test(){
- int i = 100;
- int c = 0;
- try {
- c =i+1;
- return c;
- } finally {
- // ci+1 =;
- return ++c;
- }
- }
- }
|