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
1.IN CASE OF DYNAMIC METHOD DISPATCH WHY WE USE REFERENCE VARIABLE,WE CAN USE THE DIFFERENT DEFINED OBJECT DIRECTLY TO ACCESS THE DATA MEMBER AND MEMBER FUNCTION OF THAT RESPECTIVE CLASS?WHAT IS THE MAIN FUNCTION OF "REFERENCE VARIABLE" HERE?
Differentiate between stringbuffer and stringbuilder in java.
What is difference between arraylist and list in java?
What is the use of generics? When was it added to the Java development Kit?
How do you use nextline in java?
How many JVMs can run on a single machine and what is the meaning of Just-In-Time (JIT) compiler?
What is a bufferedreader?
Is vector synchronized in java?
What’s the difference between applets and standalone program?
Where can I find jdk in my computer?
How is hashcode calculated in java?
How the metacharacters are different from the ordinary characters?
Which method you will use to create a new file to store some log data. Each time a new log entry is necessary, write string to the file in java ?
Can we have 2 main methods in java class?
What is constructor chaining in java?