About 218,000 results
Open links in new tab
  1. Implementing our Own Hash Table with Separate Chaining in Java

    Jun 13, 2024 · Implementing our Own Hash Table with Separate Chaining in Java All data structure has their own special characteristics, for example, a BST is used when quick searching of an element (in log(n)) is required.

  2. Hashtable in Java - GeeksforGeeks

    Jan 2, 2025 · Hashtable class, introduced as part of the Java Collections framework, implements a hash table that maps keys to values. Any non-null object can be used as a key or as a value. To successfully store and retrieve objects from a hashtable, the objects used as keys must implement the hashCode method and the equals method.

  3. Java Program to Implement Hash Tables Chaining with

    Jan 19, 2021 · A hash table is a data structure that executes a connected array, it is a structure that maps keys to its values. It uses a hash function to calculate an index position for the keys, also called hash code.

  4. Hashtable (Java Platform SE 8 ) - Oracle

    This class implements a hash table, which maps keys to values. Any non- null object can be used as a key or as a value. To successfully store and retrieve objects from a hashtable, the objects used as keys must implement the hashCode method and the equals method.

  5. HashTable in Java - Java Hashtable example - HowToDoInJava

    Java Hashtable class is an implementation of hash table data structure. It is very much similar to HashMap in Java, with most significant difference that Hashtable is synchronized while HashMap is not. In this Hashtable tutorial, we will learn it’s internals, constructors, methods, use-cases and other important points. Table of Contents 1.

  6. HashTable implementation in Java · GitHub

    Apr 9, 2016 · HashTable hashTable = new HashTable(); // Put some key values. for(int i=0; i<30; i++) {final String key = String.valueOf(i); hashTable.put(key, key);} // Print the HashTable structure: log("**** HashTable ***"); log(hashTable.toString()); log("\nValue for key(20) : " + hashTable.get("20") );} private static void log(String msg) {System.out ...

  7. An Introduction to java.util.Hashtable Class - Baeldung

    Jan 8, 2024 · Hashtable is the oldest implementation of a hash table data structure in Java. The HashMap is the second implementation, which was introduced in JDK 1.2. Both classes provide similar functionality, but there are also small differences, which we’ll explore in this tutorial.

  8. What Is A Java HashTable - HashTable Implementation

    Apr 1, 2025 · This Tutorial Explains What is a Java HashTable, Constructors and Methods of Hashtable Class, Hashtable Implementation in Java & Hashtable vs Hashmap.

  9. Java Hashtable Class - Tpoint Tech

    Apr 1, 2025 · Hashtable in Java is a data structure in which each key is unique and is used to store key-value pairs. It belongs to Java.util package, which implements Map interface in order to work with the elements it includes.

  10. How does Java implement hash tables? - Stack Overflow

    Oct 29, 2009 · Does anyone know how Java implements its hash tables (HashSet or HashMap)? Given the various types of objects that one may want to put in a hash table, it seems very difficult to come up with a hash function that would work well for all cases.

  11. Some results have been removed
Refresh