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 : 고 .










