분류 전체보기 149

What is the difference between checked and unchecked exceptions?

What is the difference between checked and unchecked exceptions? Checked exception Unchecked exception 예외 발생 컴파일시 예외 catch부에서 처리 런타임 도중 발생하는 catch되지 않은 예외 예외 처리 예외처리 필수 예외처리 필수 아님 트랜잭션 처리 롤백하지 않음 롤백함 예시 IOException, SQLException, ClassNotFoundException, InvocationTargetException NullPointerException, IndexOutOfBoundsException, IllegalArgumentException, NumberFormatException Why does Spring prefe..

What is the concept of AOP? Which problem does it solve? What is a cross cutting concern?

What is the concept of AOP? Which problem does it solve? What is a cross cutting concern? Name three typical cross cutting concerns. What two problems arise if you don’t solve a cross cutting concern via AOP? What is the concept of AOP? Introduction Aspect-oriented programming (AOP) is an approach to programming that allows global properties of a program to determine how it is compiled into an e..

What is dependency injection and what are the advantages of using it?

'dependency injection' definition In software engineering, dependency injection is a technique in which an object receives other objects that it depends on, called dependencies. Typically, the receiving object is called a client and the passed-in object is called a service. The code that passes the service to the client is called the injector. 'Wikipedia' 소프트웨어 공학에서 의존성 주입은 의존이 필..

[SQL] 집합 연산자 UNION / UNION ALL / INTERSECT / EXCEPT

[SQL] 집합 연산자 UNION / UNION ALL / INTERSECT / EXCEPT 집합 연산자의 종류 집합 연산자 의미 UNION 여러 개의 SQL문의 결과에 대한 합집합으로 결과에서 모든 중복된 행은 하나의 행으로 만든다. UNION [DISTINCT] 라고 보는게 맞다. UNION ALL 여러 개의 SQL문의 결과에 대한 합집합으로 중복된 행도 그대로 결과로 표시된다. 즉, 단순히 결과만 합쳐놓은 것이다. 일반적으로 여러 질의 결과가 상호 베타적인(Exclusive)일 때 많이 사용한다. 개별 SQL문의 결과가 서로 중복되지 않는 경우, UNION과 결과가 동일하다. (결과의 정렬 순서에는 차이가 있을 수 있음) INTERSECT 여러 개의 SQL문의 결과에 대한 교집합이다. 중복된 행은 ..

Certification/SQLP 2019.03.02

[SQL] ANY / ALL / EXISTS / NOT EXISTS

SQL ANY , ALL , EXISTS , NOT EXISTS ANY 연산자는 주로 서브쿼리에 사용되며 하나라도 만족하는 값이 있다면 true를 반환한다.ANY(서브쿼리 or 값) 활용 예제 1) sal > 300 OR sal > 400 OR sal > 500 이므로 sal이 300보다 크면 조건을 만족한다.SELECT ename, salFROM empWHERE sal > ANY(300, 400, 500); 활용 예제 2) 서브쿼리에서 값이 여러개 나올 수 있는 경우 ANY 연산자를 활용하였다.SELECT ename, salFROM empWHERE sal > ANY( SELECT sal FROM emp WHERE deptno = 20 ); ALL 연산자는 전체 만족해야 true를 반환하는 특징을 가지고..

Certification/SQLP 2019.02.26