You are performing a get by key in a HashMap, but the element is not found, even though you are sure that this pair was inserted. How can this happen?
Java
What is the difference between Primary Key and Unique Key?
What are prototype beans used for in Spring? Provide an example of usage.
How does the XOR gateway work in BPMN 2.0?
Tell us about the Bridge pattern — what is it for and how does it work?
How does the Inclusive gateway work in BPMN 2.0?
How to guarantee atomicity of writing to a database and sending an event to Kafka (Transactional Outbox pattern)?
How do you understand the term 'Inversion of Control'?
Have you ever optimized SQL queries? How do you use EXPLAIN ANALYZE?
How should string variables be compared in Java?
What are Stream API used for? What advantages did they add?
How does the message receiving mechanism work in Kafka consumer? Where is the offset stored?
What is the purpose of Group ID in Kafka consumer?
Does Postgres support the READ UNCOMMITTED isolation level? What happens if it is specified in @Transactional?
Can you inherit from enum, i.e., extend enum?
What is the difference between rebase and merge in Git?
What is the complexity of the insert (put) algorithm in TreeMap?
What are the pitfalls of setter injection?
What bean injection methods do you know in Spring?
What will happen if the scheduler sends an event to Kafka but crashes before marking the record in the outbox as sent?