Category Archives: Core Java

Learn TreeMap in Java with Easy Programming Example

In this chapter you will learn:

  1. What is TreeMap class in Java?
  2. TreeMap Programming Example
  3. Constructors and Methods of TreeMap class in Java

What is TreeMap class in Java?

TreeMap class in Java uses Tree based Map to store elements. A Tree based map provides faster searching and retrieval Continue reading “Learn TreeMap in Java with Easy Programming Example” »


LinkedHashMap Tutorial Java – Complete Programming Example

In this chapter you will learn:

  • What is LinkedHashMap in Java?
  • How to iterate through LinkedHashMap?
  • Programming Example
  • What is LinkedHashMap class in Java?

    LinkedHashMap is a combination of HashTable and Linked List and it stores items based on Key/Value pair. LinkedHashMap doesn’t allow Continue reading “LinkedHashMap Tutorial Java – Complete Programming Example” »


    HashMap Tutorial Java – Complete Programming Example


    In this chapter you will learn

  • HashMap Tutorial Java
  • HashMap Programming Example
  • Constructores, Methdods and Properties of HashMap
  • What is HashMap Class in Java?

    HashMap is the same as HashTable class and only difference is it allows inserting null values and it is unsynchronized. HashMap Continue reading “HashMap Tutorial Java – Complete Programming Example” »


    Java HashTable with Complete Programming Example

    In this chapter you will learn

    1. What is HashTable in Java?
    2. How to implement HashTable?
    3. HashTable programming example in java.

    What is HashTable?

    Java HashTable class stores item in key/value pair. All the items stored in hashtable is unique and it doesn’t allow null value. It inherits Continue reading “Java HashTable with Complete Programming Example” »


    Learn Map Interface in Java with Programming Example

    map-interface
    In this chapter you will learn

    • What is Map Interface in Java?
    • Programming Example

    What is Map Interface in Java?

    Map Interface provides way to store value mapped by unique key. Later this key is used for retrieving data from collection. A map cannot contain duplicate value and each key Continue reading “Learn Map Interface in Java with Programming Example” »


    Sorted Set in Java with Programming Example

    Sorted Set Java
    In this chapter you will learn
    What is Sorted Set in Java?
    Programming Example

    What is Sorted Set in Java?

    SortedSet is a set which stores its element in ascending order or sorted according to the elements natural ordering or according to comparator provided at set creation time. The traverse Continue reading “Sorted Set in Java with Programming Example” »


    Learn LinkedHashSet Class in Java with Programming Example

    linkedhashsetIn this chapter you will learn:

    1. What is LinkedHashSet Class in Java
    2. Declaration and Methods of LinkedHashSet Class
    3. Programming Example
     What is LinkedHashSet Class in Java?

    LinkedHashSet is an implementation of HashSet in a linked list with predictable iteration order. It is different Continue reading “Learn LinkedHashSet Class in Java with Programming Example” »


    Learn Set Interface in Java with Programming Example

    set interface javaIn this chapter you will learn:

    What is Set Interface in Java?
    Set Interface Classes
    Programming Example

    What is Set Interface in Java?

    A Set is a collection which doesn’t allow adding duplicate entry in the list. It models the mathematical set abstraction. It contains methods only inherited from Continue reading “Learn Set Interface in Java with Programming Example” »