Try-catch, Exception
Error(오류) 🆚 Exception(예외) 둘 다 Throwable의 class 💥 Error(오류) 컴퓨터 자체의 문제(cpu, memory 등) JVM에서 기인한 문제 ➡️ 코드의 문제가 아님 통제 불가능 ❌ 클래스로 관리되고 있다. example: OutOfMemoryError 💥 Exception(예외) ...
Error(오류) 🆚 Exception(예외) 둘 다 Throwable의 class 💥 Error(오류) 컴퓨터 자체의 문제(cpu, memory 등) JVM에서 기인한 문제 ➡️ 코드의 문제가 아님 통제 불가능 ❌ 클래스로 관리되고 있다. example: OutOfMemoryError 💥 Exception(예외) ...
✅ Daily Report 📌 TO-DO LIST submit github blog post lesson 45, 46 assigment: equals() and == equals()와 == 모두 객체를 비교하기 위해 사용 equals()는 객체의 데이터 값을 비교 ==는 메모리 값을 비교
✅ Wrapper Class primitive data type는 객체 ❌ primitive type: int, long, float, double, boolean… Wrapper Class는 클래스이기 때문에 객체의 reference type ⭕️ wrapper class: Integer, Long, Float, Double, Boolea...
✅ Stack: LIFO LIFO: Last In First Out added and removed from the top of the stack the last to be added will the the first to be removed import java.util.Stack; public class StackExample...
✅ Map 어떤 key를 기준으로 value를 알아내는 것 순서 고려 안 함 구조: key-value 용도: key를 기준으로 value검색 구현체: HashMap: Array 구조 기반 TreeMap: Node 구조 기반 💡 Map method public class MapInterfaceTest { public stati...
✅ Java List 용도: 순서가 있는 data collection 예시: 쇼핑몰 사이트 찜목록 구현 class: ArrayList(Array구조 기반) LinkedList(Node구조 기반) class로 구현 내부적으로 toString()이 포함되어 있다. 💡 List의 method public static void ...
✅ Collection Framework ✔️ 각 요구상황에 적합한 자료구조는 다르다. 핵심요소: 가장 자주 발생하는 로직이 어떤 성격인가? 예를 들어, 고객이 줄을 서는 상황(ArrayLsit)과 학생 성적 처리하는 상황(LinkedList)은 필요한 자료구조는 다를 것이다. 고려요소 적합한 용량인가? 내 의도에 맞게 사용하기 쉬운 구...
✅ Generic 프로그래밍 ❓ 로직은 다 똑같은데 datatype만 바꾸는 코드를 짜야 한다면? ❌ object가 최상위클라스니까, object class로 구현해볼까? 그러나 항상 downcasting해야하는 한계가 있다. 😨 안전하게 같은 코드를 여러 참조형에 사용하여 코드 재사용성 올리는 프로그램 기법 타입을 일반적으로 지정하지 ...
✅ Daily Report 📌 TO-DO LIST submit github blog post lesson 42, 43, 44 assigment: What happens on JVM memory ✅
✅ Daily Report 📌 TO-DO LIST submit github blog post lesson 40, 41 assigment: what happends when JVM is running ✅ JVM Class Loader loading(static variable, method) linkin...