4.0 of 5 105 reviews Beijing, China 1000 to 5000 Employees

Baidu Software Engineer Interview Question

I interviewed in Beijing, Beijing (China) and was asked:
"Describe the difference between HashMap and HashTable"
Add Tags [?]
Answer Flag Question

Part of a Software Engineer Interview Review - one of 25 Baidu Interview Reviews

Answers & Comments

of 0
HashTable is based on the old Dictionary class, and HashMap is based on Map interface since Java 1.2;
HashTable is thread safe while HashMap is not, and HashMap has better performance
HashMap allows null for a key value
- Interview Candidate on Oct 3, 2011 Flag Response

To comment on this question, Sign In with Facebook or Sign Up

Tags are like keywords that help categorize interview questions that have something in common.

Glassdoor is your free inside look at Baidu interview questions and advice. All interview reviews posted anonymously by Baidu employees and interview candidates.