"Race Condition i,e multiple threads modifying simultaneously can lead to data inconsistency
Operations like putIfAbsent() or computeIfAbsent() are not atomoic i.e duplicate entries or missing updates when multiple threads perform operations
Data Corruption : during resizing of a hashmap by a thread, if another thread is accessing the same data , buckets can get corrupted, leading to a loss of data"
Sue G. - "Race Condition i,e multiple threads modifying simultaneously can lead to data inconsistency
Operations like putIfAbsent() or computeIfAbsent() are not atomoic i.e duplicate entries or missing updates when multiple threads perform operations
Data Corruption : during resizing of a hashmap by a thread, if another thread is accessing the same data , buckets can get corrupted, leading to a loss of data"See full answer
Concept
Data Structures & Algorithms
+1 more
🧠 Want an expert answer to a question? Saving questions lets us know what content to make next.
"Memory allocation happens for storing a reference pointer as well as the default size of the generic object class depending on the language this is called in.
Assuming this is in a JVM, this data is stored in metaspace, and memory allocation happens in heap."
Alex W. - "Memory allocation happens for storing a reference pointer as well as the default size of the generic object class depending on the language this is called in.
Assuming this is in a JVM, this data is stored in metaspace, and memory allocation happens in heap."See full answer
"California is a big state and it has roughly 35 million in population, so if we assume there is a gas station for every 500 people so there would be roughly 35,000,000 divided by 500 equal to 70,000 gas station allover the state"
Misho S. - "California is a big state and it has roughly 35 million in population, so if we assume there is a gas station for every 500 people so there would be roughly 35,000,000 divided by 500 equal to 70,000 gas station allover the state"See full answer
"This is a Technical question. It tests your ability to understand high level technical concepts. Even though your job won't have any coding involved, you'll still need to understand these concepts. Being able to cover all these topics with clarity communicates confidence in your interviewer.
Unfortunately, there's no formula for technical questions, but some general tips are:
Use analogies when you can
Break your solution into clear, bite-size steps
Don't be afraid to use examples to b"
Exponent - "This is a Technical question. It tests your ability to understand high level technical concepts. Even though your job won't have any coding involved, you'll still need to understand these concepts. Being able to cover all these topics with clarity communicates confidence in your interviewer.
Unfortunately, there's no formula for technical questions, but some general tips are:
Use analogies when you can
Break your solution into clear, bite-size steps
Don't be afraid to use examples to b"See full answer