class level locking vs object level locking
ways you can create threads
Thread vs Runnable
Database structure - lets say you have Employee table which can have multiple projects and Project table which can have multiple employees then how would you structure your tables?
My Answer -
Create Employee table having EID and its other attributes
Create Project table having PID and its other attributes
Create Relation table having EID and PID where multiple EIDs are possible for one PID AND multiple PIDs are possible for one EID.
Try with resources (as per Java 7 onwards) problem with employee say try(Employee e=new Employee()) {} <- Is this a problem? If yes, why?
Why do we favour composition over inheritance
App context vs web app context
Servletcontext vs servletconfig
Loadonstartup in web.xml
Cyclic/Circular dependency in spring
Constructor injection vs setter injection? Which one would you use and when?
transaction management in spring, isolation, propagation, where do you put transaction - Service layer or DAO layer?