Queue, Deque, Stacks, SortedMap, NavigableMap, Java 8 enhancements related to Map
Hi, I am Malathi Boggavarapu working at Volvo Group and i live in Gothenburg, Sweden. I have been working on Java since several years and had vast experience and knowledge across various technologies. Queues FIFO - First in first out add() - Colletions have a method add to add an element to the queue. General functionality of add method returns true if the element is added and false if the element has not been added. In case of queue, it returns true when the element has been added and throws exception when the queue is full Offer() - This method returns true if the element has been added to the queue and returns false when the queue is full. In case of adding elements to the queue, offer method should be used. E remove() - Removes the element from the queue. remove throws exception when the queue is empty. E poll() - returns null when the queue is empty E element() - Just read elements without actually removing. Throws exception when the queue is empty ...