The Java Dictionary class is an abstract class that allows all its derived classes to store data in the form of key-value pairs. Both keys and values can be objects of any type, but keys should be unique. Also, both keys and values cannot be null. For instance, if a key or value is referring to null and then inserted into a dictionary, a NullPointerException error occurs. Therefore, it’s mandatory to provide a non-null value for storing both keys and values.
Показ дописів із міткою Collection. Показати всі дописи
Показ дописів із міткою Collection. Показати всі дописи
понеділок, 2 лютого 2015 р.
Підписатися на:
Дописи (Atom)