Programming Tutorials Browser Tutorials Articles Struts Tutorials Hibernate Tutorials

  Tutorial: Java: Maps

Key-value pairs are stored in maps.

Tutorial Details:

Map interfaces
Map implemented by HashMap and TreeMap
SortedMap implemented by TreeMap.
Map.Entry which describes access methods to the key-value pairs.
Implementing classes
A number of classes implement the Map interface, including HashMap, TreeMap, LinkedHashMap, WeakHashMap, ConcurrentHashMap, and Properties. The most generally useful class is HashMap.

java.util.HashMap is implemented with a hash table. Access time is O(1). Entries are unsorted.


 

Rate Tutorial:
http://www.roseindia.net/java/java-tips/data/collections/maps/map_interface.shtml

Read Tutorial at: Click here to view the tutorial

Rate Tutorial:
Java: Maps

View Tutorial:
Java: Maps

Related Tutorials:

Site navigation
 

 

Send your comments, Suggestions or Queries regarding this site at roseindia_net@yahoo.com.

Copyright © 2006. All rights reserved.