GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

GeekInterview.com  >  Interview Questions  >  J2EE  >  Java
Go To First  |  Previous Question  |  Next Question 
 Java  |  Question 98 of 923    Print  
What is the Map interface
The Map interface replaces the JDK 1.1 Dictionary class and is used associate keys withvalues.


  
Total Answers and Comments: 1 Last Update: July 05, 2008   
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
July 05, 2008 03:26:32   #1  
Prabhas270 Member Since: July 2008   Contribution: 1    

RE: What is the Map interface
Hi There,

 Map is one of the datastuctures provided by Sun.Map is an interface ,it is not extending from Collection interface as like List,Set,Queue does.

There are 4 Classes which are implemented the Map interface.


      HashMap
      HashTable
      LinkedHashMap
      TreeMap

And SortedMap is an interface extending from Map.Todo Sorting TreeMap implemented SortedMap Interface.

Coming to HashMap,We can store and maintain the data in the format of Key/Value  pairs .And HashMap allows null as key and value.But HashTable not allows.

As useval LinkedHashMap is to maintain te data in the format of insertion order.But it is little bit slow compare with HashMap.Iteration will be faster. 

 
Is this answer useful? Yes | No

 Related Questions

Objects that subclass the Observable class maintain a list of observers. When anObservable object is updated it invokes the update() method of each of its observers tonotify the observers that it has changed 
Latest Answer : Observer observe only those class which are Observable. ...

The List interface provides support for ordered collections of objects. 
Latest Answer : The list interface extends Collection and declares the behaviour of a collection that stores a sequence of elements. Elements can be inserted or accessed by their position in the list, using a Zero-based index. Alist may contain duplicate elements. ...

The Iterator interface is used to step through the elements of a Collection. 
Latest Answer : Iterator Interface is part of java.util package.It is used to retrive the elements in the collection object one by one.It has methods like hasNext(),next().the iterator interface is obtained by using iterator() on the collection object.and the basic diff ...

The EventObject class and the EventListener interface support event processing. 
Latest Answer : Java.util.Event class ...

An anonymous class may implement an interface or extend a superclass, but may not bedeclared to do both. 

It must provide all of the methods in the interface and identify the interface in itsimplements clause. 
Latest Answer : interface enhance the concepts of inheritence. by calling multiple interfaces to class we can also inherinting more than a class indirectly ...

A Java source code file takes the name of a public class or interface that is defined withinthe file. A source code file may contain at most one public class or interface. If a publicclass or interface 

An object reference be cast to an interface reference when the object implements thereferenced interface. 

The Map interface replaces the JDK 1.1 Dictionary class and is used associate keys withvalues. 
Latest Answer : Hi There, Map is one of the datastuctures provided by Sun.Map is an interface ,it is not extending from Collection interface as like List,Set,Queue does.There are 4 Classes which are implemented the Map interface.      HashMap      ...

An event-listener interface defines the methods that must be implemented by an eventhandler for a particular kind of event. An event adapter provides a default implementationof an event-listener interface. 


 Sponsored Links

 
Related Articles

Service Oriented Java Business Integration Review

Service Oriented Java Business Integration Review Introduction If you ve read through the texts which give you an introduction to SOA or Web Services you will often find them to be quite frustrating and the reason for this is because they spend too much time referencing business processes which are
 

High-Speed Serial Interface (HSSI)

High Speed Serial Interface HSSI HSSI is High Speed Serial Interface was first developed by Cisco systems and the main purpose was to solve high speed requirement issues The main application of HSSI is on the Wide Area Networks and it helps to enhance the data flow speed on these networks It can wor
 

Fiber Distributed Data Interface (FDDI)

Fiber Distributed Data Interface FDDI The Fiber Distributed data interface or the FDDI is a 100 mbps line using the LAN network and is connected through a fiber optic cable The FDDI technology is used where the networks need a high speed bandwidth and need to cover huge distances than the copper wir
 

Java and Client Server Models

Java and Client Server Models The Role of Client Servers on the Web Client server models provide the essential mechanisms for working with the Internet In fact most of the World Wide Web is built according to this paradigm In client server models the web browsers run by millions of users are the cli
 

The Interview Snafu

How to turn someone else’s mistake to your advantage Your dream job is about to become reality. A recruiter gave you the heads up about the perfect position at Humungous Conglomerate, Inc. You went through five interviews as well as a battery of psychological tests mandated by their HR de
 

Winning a Job Interview with a Winning Resume

Does your resume unlock your potential, take your skills to the highest level and win you the interview and the job you want now? The job market today is highly competitive and even if you think you have what it takes to get an interview you won’t get over the line without a polished, prof
 

Using UML with Java

Using UML with Java While Java is not a new language its application for the development of embedded systems is quite new Developers are beginning to take a second look at modeling languages such as UML and many feel it can be a powerful tool in their development arsenal mosgoogle center Introductio
 

Importance of Proper English during Job Interview

Importance of Proper English during Job Interview Your job interview is crucially important and it will determine whether or not you will get the job Depending on the type of job you re going for it is very important for you to use proper English In most cases jobs which offer higher salaries will h
 

Java Technology Trends

Technology Trends Involving Java Java is an object oriented programming language OOP for Web browsers It is organized around data rather than actions and supports polymorphism which allows the same code to be written generically so it can function with different datatypes inheritance which allows on
 

HR Interview - HR Interview Mistakes You Will Want To Avoid

HR Interview Mistakes You Will Want To Avoid The job interview can be a stressful process This is especially true for those who are going after a competitive position Your nonverbal communication combined with the answers you give during the interview will determine if you are hired mosgoogle While
 





About Us  |   Privacy Policy  |   Terms and Conditions  |   Contact  |   Site Map  |   Add Question  |   Propose Category  |   RSS Feeds  |   Articles Sitemap  |   Site Updates  |   Add Resource

Copyright © 2005 - 2008 GeekInterview.com. All Rights Reserved
Page copy protected against web site content infringement by Copyscape