Search Results for: collection
Now we’ll learn about the Saving Collections in Hibernate with Example. In the previous tutorial, we learned about Embedding value type object. Now what will be doing when there are a lot of embeddable objects …
In previous tutorial of Collections in Hibernate and Adding Keys Example we wrote the collection of objects of an entity class, we persist in the separate table, here there are following two tables are created …
Java Collections Framework are the fundamental aspect of java programming language. It’s one of the important topic for java interview questions. Here I am listing some important questions and answers for java collections framework.
We can sort the elements of: String objects Wrapper class objects User-defined class objects Collections class provides static methods for sorting the elements of collection.If collection elements are of Set type, we can use TreeSet. …
A Hashtable is an array of list.Each list is known as a bucket.The position of bucket is identified by calling the hashcode() method. A Hashtable contains values based on the key. It implements the Map …
TreeMap class A TreeMap contains values based on the key. It implements the NavigableMap interface and extends AbstractMap class. It contains only unique elements. It cannot have null key but can have multiple null values. …
This class extends HashMap and maintains a linked list of the entries in the map, in the order in which they were inserted. This allows insertion-order iteration over the map. That is, when iterating a …