find all pairs of integers which sum to X
Sort the given array keep 2 pointers one at the start fo array and other at the end of end check if …
Sort the given array keep 2 pointers one at the start fo array and other at the end of end check if …
int a[ ] = { 6, -8, 3, -2, 4}; maxsum = 0; sum = 0; for (int i = 0; i …
Programmatic vs. Declarative Spring supports two types of transaction management: Programmatic transaction management: This means that you have manage the transaction with the …
Iterator are fail safe while Enumeration is not Iterator is fail-safe, because it won’t allow you to change the Map while doing …
public class Singleton{ private static volatile Singleton _instance; public static Singleton getInstance(){ if(_instance == null){ synchronized(Singleton.class){ if(_instance == null) _instance = new …
There seems to be two camps in dependency-injection: (1) The constructor-injection camp and (2) the setter-injection camp. Historically the setter-injection camp come …
http://www.tutorialspoint.com/spring/index.htm http://www.vaannila.com/ http://www.mkyong.com/ http://javabrains.koushik.org/ http://viralpatel.net/blogs/
4.4 Bean scopes When you create a bean definition what you are actually creating is a recipe for creating actual instances of the class defined …
Scope Description singleton Scopes a single bean definition to a single object instance per Spring IoC container. prototype Scopes a single bean …