How do you determine which fields should be included in equals and hashCode?
Java
Is Spring a framework or a library? What is the difference between a framework and a library?
Have you ever used window functions in PostgreSQL?
List the design patterns (GoF) that you are sure you know.
What is the difference between optimistic and pessimistic locking?
How do you usually map objects from entity to DTO and back?
What levels of transaction isolation exist and how do they differ?
What are enums used for in Java?
Why is Map not considered a collection?
What is the difference between interfaces and abstract classes in Java (starting from Java 8)?
Which build tool do you prefer — Maven or Gradle?
Why is the space on disk not freed immediately after DELETE or TRUNCATE in PostgreSQL?
Why is the HAVING clause needed in SQL?
List the Spring annotations that you frequently use.
What collections do you know? List the implementations of collections.
Tell me about the propagation types in the @Transactional annotation. Have you ever set non-default ones?
What is the purpose of TreeMap?
How do indexes work internally (e.g., B-tree indexes)?
What is a dirty read?
Explain the Decorator pattern — how does it work?