difference between HashMap, Hashset and hashTable?
Answer Posted / sujitpingale
HashMap -
1) unsynchronized and unordered
2) Allow one null key , multiple null values
HashTable -
1) synchronized and unordered
2) Doesn't allow null key and value
HashSet -
1) synchronized and ordered
2) Sort elements in ascending order , doesn't allow duplicate elements
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is a clone?
Which javutil classes and interfaces support event handling?
What is local interface. How values will be passed?
What is the relationship between an event-listener interface and an event-adapter class?
What state does a thread enter when it terminates its processing?
What is the difference between session and entity beans?
How messaging services are done, before release of JMS?
To what value is a variable of the string type automatically initialized?
How to deploy Jar, War files in J2EE?
what is a non-repeatable read?
Why does the option tag render selected=selected instead of just selected?
What are the different class loaders used by jvm?
Describe, in general, how java's garbage collector works?
A user of a web application sees a jsessionid argument in the URL whenever a resource is accessed. What does this mean? a. The form must have the field jsessionid b. URL rewriting is used as the session method c. Cookies are used for managing sessions
Is the infobus client side only?