What is the difference between HashMap and Hashtable?

Asked 1 years ago, Updated 1 years ago, 124 views

What is the difference between HashMap and Hashtable in Java? What else is more efficient in the non-threaded program?

java hashtable hashmap

2022-09-21 16:33

1 Answers

And there's a lower class of HashMap called LinkedHashMap It's good to save them in the order they come in and consider the order There's nothing like this on the Hashtable

In general, asynchronous objects perform better than synchronous objects So when it's a non-threaded program, it's better to use HashMap.


2022-09-21 16:33

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.