분류 전체보기 344

[객체 지향 설계와 스프링] 스프링이란?

🧐강의🧐 https://www.inflearn.com/course/%EC%8A%A4%ED%94%84%EB%A7%81-%ED%95%B5%EC%8B%AC-%EC%9B%90%EB%A6%AC-%EA%B8%B0%EB%B3%B8%ED%8E%B8/dashboard ✨ 스프링이란? · 스프링 : 여러 가지 기술들의 모음 (문맥에 따라 다른 해석) 》 스프링 DI 컨테이너 기술 》 스프링 프레임워크 》 스프링 부트, 스프링 프레임워크 등을 모두 포함한 스프링 생태계 · 스프링 프레임워크 : 스프링 부트를 이용하여 기술들을 편리하게 사용 》 핵심 기술 : 스프링 DI 컨테이너, AOP, 이벤트, 기타 》 웹 기술 : 스프링 MVC, 스프링 WebFlux 》 데이터 접근 기술 : 트랜잭션, JDBC, ORM, XML 》 기..

[Java8 Lambda] Closures in Lambda Expressions

🤹‍♂️Java Brains 강의🤹‍♂️ https://www.youtube.com/playlist?list=PLqq-6Pq4lTTa9YGfyhyW2CqdtW9RtY-I3 ✔️ Closure : 내부에서 외부 함수의 지역 변수 호출하기 · Code public class Main { public static void main(String[] args) { int a = 10; int b = 20; doProcess(a, i -> System.out.println(i + b)); } private static void doProcess(int i, Process p) { p.process(i); } } interface Process { void process(int i); } ➡️ main 함수에서 do..

Spring/JAVA 2023.10.16

[Java8 Lambda] Exception Handling in Lambdas (try - catch)

🤹‍♂️Java Brains 강의🤹‍♂️ https://www.youtube.com/playlist?list=PLqq-6Pq4lTTa9YGfyhyW2CqdtW9RtY-I3 💡 someNumbers 배열 원소들을 key 값으로 나눈 나머지 출력하기 💡 · key 값이 2일 때 출력 (정상) · key 값이 0일 때 출력 (예외 상황) · Code import java.util.function.BiConsumer; public class Main { public static void main(String[] args) { int[] someNumbers = {1,2,3,4}; int key = 2; process(someNumbers, key, wrapperLambda((v, k) -> System.out...

Spring/JAVA 2023.10.13

[Java8 Lambda] Using Functional Interfaces (Predicate, Consumer)

🤹‍♂️Java Brains 강의🤹‍♂️ https://www.youtube.com/playlist?list=PLqq-6Pq4lTTa9YGfyhyW2CqdtW9RtY-I3 🐣 Missions 🐣 ☝️ Sort list by last name ✌️ Create a method that prints all elements in the list 👌 Create a method that prints all people that have last name beginning with C 🐤 Solution 🐤 · Interface public class Person { private String firstName; private String lastName; private int age; public Person(..

Spring/JAVA 2023.10.12

[Java8 Lambda] Lambda Expressions

🤹‍♂️Java Brains 강의🤹‍♂️ https://www.youtube.com/playlist?list=PLqq-6Pq4lTTa9YGfyhyW2CqdtW9RtY-I3 ✨ Code in OOP ☑️ Object Oriented Programming (OOP) 에 문제가 있어서 Java8 Lambda 가 나온 것 (진짜?) · Everything is an object · All code blocks are 'associated' with classes and objects ✨ Why Lambdas? · Enables functional programming · Readable and concise code · Easier to use APIs and libraries · Enable support f..

Spring/JAVA 2023.10.10
728x90