ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip       Ask Questions on ANYTHING, that arise in your Daily Life at     FORUM9.COM
Google
 
Categories  >>  Software  >>  Core Java  >>  Java J2EE  >>  Java Related
 
 


 

 
 Core Java interview questions  Core Java Interview Questions
 Advanced Java interview questions  Advanced Java Interview Questions
 Swing interview questions  Swing Interview Questions
 EJB interview questions  EJB Interview Questions
 Servlets interview questions  Servlets Interview Questions
 Struts interview questions  Struts Interview Questions
 JDBC interview questions  JDBC Interview Questions
 JMS interview questions  JMS Interview Questions
 SunOne interview questions  SunOne Interview Questions
 J2EE interview questions  J2EE Interview Questions
 Weblogic interview questions  Weblogic Interview Questions
 Websphere interview questions  Websphere Interview Questions
 Java Networking interview questions  Java Networking Interview Questions
 Java J2EE AllOther interview questions  Java J2EE AllOther Interview Questions
Question
What is Map interface?
 Question Submitted By :: Guest
I also faced this Question!!     Rank Answer Posted By  
 
  Re: What is Map interface?
Answer
# 1
Java Collection Framework - Map Interface

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, by defination.
The Map interface follows.

    public interface Map<K,V> {

        // Basic operations
        V put(K key, V value);
        V get(Object key);
        V remove(Object key);
        boolean containsKey(Object key);
        boolean containsValue(Object value);
        int size();
        boolean isEmpty();

        // Bulk operations
        void putAll(Map<? extends K, ? extends V> m);
        void clear();

        // Collection Views
        public Set<K> keySet();
        public Collection<V> values();
        public Set<Map.Entry<K,V>> entrySet();

        // Interface for entrySet elements
        public interface Entry {
            K getKey();
            V getValue();
            V setValue(V value);
        }
    }
 
Is This Answer Correct ?    0 Yes 1 No
Guest
 
  Re: What is Map interface?
Answer
# 2
Map interface provides classes and interfaces to do
operations with objects saved as key value pairs
 
Is This Answer Correct ?    0 Yes 0 No
Ravikiran(aptech Mumbai)
 
 
 

 
 
 
Other Core Java Interview Questions
 
  Question Asked @ Answers
 
What is the Layout for ToolBar?  1
what do you meant by Runtime Polymorphism? Persistent10
can we declare private class in java file?  6
write a class to input 2 points by the user & check the line maked by the points is horizontal,vertical or rectangle?  1
Explain different ways of passing arguments to sub-routine?  1
What is numeric promotion?  1
Difference between Applet & Application?  5
What is Three tier architecture. Can anyone explain with a Ordinary web application Project? (JSP,Servlets,JAVA,DAO) ? TCS1
What is the difference between Abstract Class and Interface AMDOC6
If there is no implementation of MARKER INTERFACE in java. Then how compiler come to know about specification.  2
write the hierarchy of component class?  1
garbate collector(GC)?  4
what are the jsp tags with example? Photon1
why the equals method can be override?when we override the equals method?  4
What happens if an exception is not caught?  4
After compilation of java program we'll get .class code. If it's generated in OS Windows XP will it work on OS Linux? If yes why? If no why? Aricent4
can we create object for static class in java Marlabs5
Which containers may have a MenuBar?  1
What is meant by event handling?  1
what is main difference b/w abstract class and interface  3
 
For more Core Java Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com