String.replace1 [Java_Example] Exception, HashMap<>, eqauls(), hashCode(), toString(), StringBuffer, new String(Byte배열), String.indexOf(), String.replace, 익명 구현 클래스 객체 생성 1. Exception Example 01 try-catch 예외처리 2번 문제에서 Exception이 예외 최상위 클래스이므로 모든 예외가 catch되어 이후에 다른 catch를 하더라도 의미가 없어 빨간줄이 생김(컴파일 에러) 2. Exception Example 01 try-catch 예외처리 17줄 finally는 예외처리 결과가 어떻든 실행된다. value값은 10줄 코드가 예외없이 실행되어야 값을 반환하여 바뀐다. catch문을 여러개 작성하여 다른 코드(로그찍기)를 실행할 수 있다. 3. Util_Example01 HashMap, eqauls(), hashCode() 예제 Object의 hashCode() 메서드 설명 링크 : https://developer-talk.tistory.com/7.. Coding 공부/Java 2024. 2. 23. 이전 1 다음 728x90 반응형