coderz.py

Keep Coding Keep Cheering!

Legacy Classes in Java

What are the Legacy Classes in Java?  Before Java 1.2, there were multiple classes and interfaces to hold the objects. There was no Collection Framework before this version. In that circumstance, legacy classes and interfaces are employed to store things.All legacy classes have been synchronized. The following legacy classes are defined in java.util package: HashTable […]

August 8, 2022 | Java | No comments

Hashtable class in Java Collection Framework

The Hashtable class creates a hash table by mapping keys to values. As a key or value, any non-null object can be used. The objects used as keys must implement the hashCode and equals methods in order to successfully store and retrieve objects from a hashtable. Hashtable class Declaration: Remember the following: A Hashtable is […]

August 3, 2022 | Java | No comments

Advertisement