1. static 대
4. try ~ catch
5. try~catch~finally
>
- static 는 변 명 명 .
2. Math Wrapper
- Math는 들 .
3. static import
- abs() : 대 .
- sqrt() : .
- max(), min() : 대/ .
- round() : 림.
- pow() : .
- PI : 를 내는
- Wrapper(Integer, Double, Character...)
- sqrt() : .
- max(), min() : 대/ .
- round() : 림.
- pow() : .
- PI : 를 내는
- parseXXX : String 변.
- toString : 를 문 .
- toString : 를 문 .
- 명 .....
> 2방 를 는 램 보.
~java public class ExceptionExample { public static void main(String[] args) { try { int a = Integer.parseInt(args[0]); int b = Integer.parseInt(args[1]); System.out.println(a + " / " + b + " = " + (a / b)); } catch(ArrayIndexOutOfBoundsException e) { System.out.println("를 2 "); } catch(ArithmeticException e) { System.out.println("0 마"); } catch(NumberFormatException e) { System.out.println("문 마"); } } }
- try ~ catch 문 무 finally문 .
6. 모 Exception
- 모 는 Exception를 받는.
- Exception .
7. throws 문 / throw 문
- Exception .
throws : 는 리 .
throw : 를 .
> 100 를 는 램 보.
throw : 를 .