Round 2: Q1 : What is pointcut & jointcut in Spring AOP. Q2 : What are the difference between shallow copy vs deep copy in Java? Q3 : Write an program which demonstrate custom Runtime exception? Q4 : Find employee for each department whose birthday falls on current month? Employee (id, name, dob, dept_id) Department (dept_id, dept_name)
Sigiloso
A2: Shallow copy works with only primitive type and deep copy also works with wrappers class and object copy, programmer need to customized the deep copy. A4 : SQL Queries select e.name, d.dept_name from Employee e JOIN Department d on e.dept_id = d.dept_id where MONTH(e.dob) = EXTRACT(MONTH from SYSDATE) group by e.dept_id;