Java Facts You Should Know

theskilledcoder's tweet image. Java Facts You Should Know

Hashmap uses two types of data structures(linked list and self balanced bst) to store the value of key having same hash value to optimize the avg time complexity.


Will this be on the test?


I would add - using lambda expressions is relatively expensive. Although they look like blocks of code, they are not. Each call to a lambda expression requires loading a class, creating an instance, and calling a method.


I would add - use of streams is expensive as it involves a lot of internal processing and heavy use of lambda's. So use streams only if you have to e.g. don't replace simple loops.


United States Xu hướng
Loading...

Something went wrong.


Something went wrong.