This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes Map & dictionary Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Map & dictionary" Watch "Map & dictionary" New topic

Map & dictionary

Betsy Camel
Ranch Hand

Joined: Oct 02, 2003
Posts: 119
Can u tell me the difference between the Map & dictionary. I have searched most of the forums.
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 15042

It's the same thing - a data structure that lets you store values associated with keys.

Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 8 API documentation
marc weber

Joined: Aug 31, 2004
Posts: 11343

Originally posted by Betsy Camel:
...I have searched most of the forums.

The place to look is the API.

Map is an interface, and Dictionary is a class. (Hashtable is a subclass of Dictionary and also implements Map.)

"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer
subject: Map & dictionary
It's not a secret anymore!