Difference between Sun JDK And Oracle JRockit
This is very important to know, which jdk is better than and which one to use. Below are some basic difference between Sun JDK and Oracle JRockit. As we know, […]
Map Interface in Java
import java.util.HashMap;import java.util.Iterator;import java.util.Map;import java.util.Map.Entry;import java.util.Set; public class MapImplementation { public MapImplementation() { super(); } public static void main(String args[]){ Map<Integer,String> map = new HashMap<Integer,String>(); // Addition of […]
Use of list, add elements and iterate
import java.util.ArrayList; import java.util.Iterator; import java.util.List; public class ListImplementation { public ListImplementation() { super(); } public static void […]