Queue * Child interface of collection * Null values aren't allowed * Duplicates values are allowed * Heterogeneous elements are allowed * Implements FIFO order Methods of Queue * boolean offer(E e) These three throws special value null or false * E poll() * peek() boolean add(E e) These throw exception E remove() E element() PriorityQueue Implements Queue *Ordered acording to natural ordering or by comparator * null isn't allowed * Not Thread safe, but priority queue is PriorityQueue() PriorityQueue(Collection C) PriorityQueue(int initialCapacity) PriorityQueue(int initialCapacity,Comparator c) PriorityQueue(SortedSet s) PriorityQueue(PriorityQueue p) Map *map isn't child interface of Collections *we use map for key-value pair *key and value both must be objects; *Value can be repeated not keys //DUH *All map implementation should provide two standard constructors: *A void(no arguments) constructor which creates an empty map and *A constructor with a single argument of type Map, wihch creates a new map with the same key-value mappings as it's argument. * map entry is key-value pair methods of Entry *public object getValue(); *public object getKey(); Other methods *public Object put(Object key,Object value) *public void putAll(Map map) *public Object remove( Object key) *public Object get(Object key) *public boolean containsKey(Object key) *public Set keySet(); *public Set entrySet(); HashMap *contains values based on key *hashtable data structures is used *contains only unique elements * may have one null key and multiple null values *Next attempt to enter null as key, it simply discard without any error
How to start programming any site or Case Study which we can refer to become proficient in programming.. Moreover need to know how to increase thought process
Sir when will you upload the programs using Map Interface......The theory part is easily understandable........Thanks a lot for such a nice explanation of each and every part of JAVA
Learn Python From The greatest explainer here ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-AQ1eVnsPrYM.html and learn C also ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE--uttTrBolgA.html
How HashMap internally work? If this topic is not there in your collection video means your total discussion is wast. It my request to u shukla ji, please explain because that scenario very Imp to us.