what is the difference between HashMap and Hashtable
Answer Posted / avinash
1. Hash map is not is synchornized
2. Hash map is allow null value only at once.
3. iterator is fail safe
1.Hash table is synchronized.
2. Hash table isnot allow null value.
3. enum hashtable is not.
Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Can an interface be defined inside a class?
Can we sort a map in java?
What is the purpose of checked and unchecked exceptions in JAVA?
Difference between abstract and concrete class ?
What is arguments in java?
What is the finalize method do?
2) Suppose there are 5 directories having lot of files (say txt files) in each directory. 2 things :- 2.1) You want to search for filenames which have a particular pattern. 2.2) Out of these filtered files you want to search for a particular keyword or a search string. How can you achieve this?
What is constructor chaining in java?
Explain wait(), notify() and notifyall() methods of object class ?
Why lambda expression is used in java?
What is the base class of all exception classes?
Can we make the abstract methods static in java?
State differences between C and Java?
Is the empty set a singleton?
What is serialization in java?