answersLogoWhite

0

Which all represent the properties of hashtable in java?

Updated: 3/24/2020
User Avatar

Wiki User

13y ago

Best Answer

HashTable

Like Vector, Hashtable has existed from prehistoric Java times. For fun, don't forget to note the naming inconsistency: HashMap vs. Hashtable. Where's the capitalization of t? Oh well, you won't be expected to spell it. Anyway, just as Vector is a synchronized counterpart to the sleeker, more modern ArrayList, Hashtable is the synchronized counterpart to HashMap. Remember that you don't synchronize a class, so when we say that Vector and Hashtable are synchronized, we just mean that the key methods of the class are synchronized. Another difference, though, is that while HashMap lets you have null values as well as one null key, a Hashtable doesn't let you have anything that's null.

User Avatar

Wiki User

13y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Which all represent the properties of hashtable in java?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is util in java?

I am assuming that you are talking about the java.util package. java.util is a non-extension package that shipped from Java 1. It has many utilities classes that are frequently used in Java programming. For example, the Collections framework is in it, along with all of the legacy collection classes (viz. Hashtable and Vector). It has the event model, date and time facilities, and il8n (internationalization; it's a long word, hence the abbreviation). It also has some miscellaneous utility classes, such as Properties, Observer/Observable, Random, Scanner, Enumeration/Iterator, and others.


Can override thread's run method?

Yes you can very well do... the run method is nothing but a Java method and all properties applicable to Java methods are applicable to it also.


Which package in java is treated as default package?

java.lang defines the core Java language, without which all of Java would fail to operate. It is therefore the default package that must be used with every program that will run Java, as it contains all of the logic necessary for exception handling, threads, classes that represent primitives (and their associated logic), and so on.


When creating a Bean how do you make its properties available to all possible users?

Declare the Bean's fields "public."Java 2, Question 10 of 40


What is the need of unicode in java?

The idea is to have a single character set that can represent ALL the languages of the World, without the need to change between different character encodings.


What are the purposes of inheritance in java?

Inheritance is one of the fundamental properties of java, allowing subclasses to inherit all of the public methods and data members of their respective superclasses. For instance, assume there are three classes named "Bug", "Arachnid", and "Black Widow". Arachnid extends (inherits) Bug, and BlackWidow extends Arachnid. Therefore, BlackWidow inherits all of the properties of Arachnid (eight legs, segmented body, etc) and all of the properties of Bug (small, creepy, exoskeleton, etc). Arachnid only inherits Bug.


Where do i get the newest Java?

go to sun.com It is Java's official website and they will have all versions of java for download


Could you please differentiate Java and all other languages?

Java is java and rest are rest :P


What is java's rank?

Java tops in all languages.Its on rank 1...


Is java is a platform independent language?

Yes. Apart from lower grade mobiles which have no support for java, java written codes can execute on all platforms and all devices.


Which one is more advanced core java or java?

The Core Java technologies and application programming interfaces (APIs) are the foundation of the Java Platform, Standard Edition (Java SE). They are used in all classes of Java programming, from desktop applications to Java EE applications. Well What exactly you mean by Java?


Sumatra borneo and java are all located in what country?

Borneo and Java is Indonesia Country