자바 8 API에 새로 추가된 기능선언형: 간결하고 가독성 좋음조립 가능: 복잡한 데이터 처리도 파이프라인으로 연결병령화: 멀티스레드 코드를 구현하지 않아도 데이터를 투명하게 병렬 처리 가능. 성능이 좋아짐위 코드를 멀티코어 아키텍쳐에서 병렬로 실행 가능한 코드로 만들
filter 메서드Predicate을 인수로 받아 predicate과 일치하는 모든 요소를 포함하는 스트림 반환predicate: boolean을 반환하는 함수 distinct 메서드고유 여부는 스트림에서 만든 객체의 hashCode, equals로 결정됨스트림의 요소
자바8은 세가지 기본형 특화 스트림을 제공한다: IntStream, DoubleStream, LongStream각 인터페이스는 sum, max 등 흔히 사용되는 숫자 관련 리듀싱 연산 수행 메서드를 제공함다시 객체 스트림으로 복원하는 기능도 제공특화 스트림은 오직 박싱
Stream.of임의의 수를 인수로 받음정적 메서드스트림 비우기객체로 스트림을 만드는데, 객체가 null이면 빈 스트림으로 만들어야 한다System.getProperty - 제공된 키에 대응하는 속성이 없으면 null 반환Arrays.stream: 배열을 인수로 받는
collect 메서드에 Collector 인터페이스 구현을 전달한다스트림에 collect를 호출하면 스트림의 요소에 리듀싱 연산이 수행됨collect에서 리듀싱 연산을 이용해 스트림의 각 요소를 방문하면서 Collector가 작업 처리보통 함수를 요소로 변환할 때는 컬
n 이하의 자연수를 소수와 비소수로 분류하기.boxed() : returns a Stream consisting of the elements of this stream, each boxed to an Integer지금까지 발견된 소수 리스트에 접근해 이 값들로 나눠떨어
A program uses a call stack to keep track of method callsCall stackmade up of stack framesone stack frame per method callcontains info about method &
When programmers create a memory in heap and forget to delete it, memory leaks can occur. Consequences of Memory leak reduces amount of available mem
declared inside the body of the methodcan be only used within that methodother methods in class aren't aware of variables' existencecan't be declared
Multiprocessing and multithreading are purposed for better computing power of a system. A system that has more than one or two processors. CPUs are ad
Overloading과 Overriding Overloading Overriding Static Polymorphism과 Dynamic Polymorphism Static Polymorphism Dynamic Polymorphism 추상화와 캡슐화 추상화 캡슐화 프로세
represents a date & time locallyyear, month, day, hour, minute, second, nanoseconduseful for time in local contextrepresents instantaneous point in ti
For entities that have potential security risks for sequentially generated ID values, UUID is a commonly used class type in Spring Boot context. immut