In the Preferences, under Java -> Editor -> Content Assist -> Advanced that Java proposals Just click on java proposals.
First Level Cache First-level cache always Associates with the Session object. Hibernate uses this cache by default. Here, it processes one transaction after another one, means wont process one transaction many times. Mainly it reduces the number of SQL queries it needs to generate within a given transaction. That is instead of updating after every Continue Reading…
LinkedList is also the implementation of Queue inteface. It works on FIFO(First In First Out mode). LinkedList is better to insert or delete the elements of the list than the ArrayList.
Both the collections implements Map: 1. HashMap is not synchronized but HashTable is synchronized. 2. HashMap accepts null values and one null key whereas HashTable does not allow null key and value.
1. Iterator can iterate a collection only in forward direction whereas through ListIterator we can iterate the collection in both forward and backword direction. 2. Iterator can be used for all the collection like List, Set , Map whereas ListIterator can only be used for List collection.
There are main two difference between ArrayList and Vector 1. Synchronization: ArrayList is not synchronized , but Vector is synchronized. Because ArraList is not synchronized so it is not thread safe. Vector is thread safe. Because Vector is thread safe, in terms of performance Vector is slower than ArrayList. 2. Data size Increament: ArrayList increase Continue Reading…
In earlier versions of Java, there were some classes which was used in place of Collections framework, those classes were known as Legacy classes. Legacy classes were used earlier to save the object state. Example: Vector is a Legacy class.