dinesh Archive
The Map interface is not an extension of Collection interface. Instead the interface starts of it’s own interface hierarchy, for maintaining key-value associations. The interface describes a mapping from keys to values, without duplicate keys, …
Several difference between HashSet and TreeSet are similar to what we discussed as difference between TreeMap and HashMap. Anyway Set and Map are two completely different interface so we will revisit those differences here. Probably …
public class TreeSet<E> extends AbstractSet<E> implements NavigableSet<E>, Cloneable, Serializable A NavigableSet implementation based on a TreeMap. The elements are ordered using their natural ordering, or by a Comparator provided at set creation time, depending on …
public class LinkedHashSet<E> extends HashSet<E> implements Set<E>, Cloneable, Serializable Hash table and linked list implementation of the Set interface, with predictable iteration order. This implementation differs from HashSet in that it maintains a doubly-linked list …
A HashSet is a collection set that neither allows duplicate elements nor order or position its elements. This class implements the Set interface and extends AbstractSet. It creates a collection that uses a hash table …
In this example show how to write a simple web based application with CRUD operation using Spring3 MVC Framework with Hibernate3 using Annotation handling two database tables(Category & Publication), which can handle CRUD inside its …
An iterator for lists that allows the programmer to traverse the list in either direction, modify the list during iteration, and obtain the iterator’s current position in the list. A ListIterator has no current element; …