The way how create object in Java
1. Static Factory MethodThe java language offer to us the constructor for creating new object. It’s simplest way to do that but It has a lot of limitation.So We would study the new way for creating ja
1. Static Factory MethodThe java language offer to us the constructor for creating new object. It’s simplest way to do that but It has a lot of limitation.So We would study the new way for creating ja
Static Factory MethodWe have often used the constructor when You need to create the object. because This function is basically offered a lot of the programming languages like Java, C++, JS, python and
SETJvm argumentJvm arguments are begun with ‘-D’. 1java -jar -Dfoo heumsi-springboot.jar Application argumentApplication arguments are begun with ‘—‘. 1java -jar --bar heumsi-sprinboot.jar GETapplicat
The concept of DTO and VO.A data transfer object’s purpose is to represent the data to be transferred to another process, e.g. from your backend to a web frontend. If the information you are transferr
1. .parallel() and .sequential()Stream API has the .parallel() function. It offers the parallel attrbute to the stream literally. You can use this function at the mid place and the calculations will b
1. reduce()reduce() calculation return the value no like any list, array, collection model. Usually It’s called ‘Fold’ Calculation at the Functional Programming. Because The process getting the value
1. Why do we use the stream ? You don’t need to think about how to build. It’s like the Query. How do we get the max value before the Java8, We always use the ‘for’ keyword or ‘if’ keyword for gettin
자바에서의 함수자바에서 함수, 메소드는 독립적으로 존재할 수 없는 개체이다. 하지만 함수형 프로그래밍이 대두됨에 따라서 ‘Java8’ 에서는 함수를 독립적으로 사용하기 위해서 ‘FunctionalInterface’ 이라는 방법을 제공한다. 123456@FunctionalInterfaceinterface DummyInterface { int d
전략 패턴과 동작 파라미터화를 활용해서 자바 코드를 리팩토링 해보자실무의 관점에서 코드를 올바르고 좋게 짠다는 것은 다양한 관점이 있겠지만 그 중 하나는 ‘확장성’ 있는 코드를 만드는 것이다. 어떤 비즈니스가 어떠한 방향으로 새롭게 변경될지는 아무도 모르기 때문에 개발자의 입장에서 어떤 코드를 작성할 때에는 최대한 그 변화들을 수용할 수 있는 코드를 작성할