What is the purpose of the 'final' keyword in Java (for fields, classes)?.
Java
Can you name three examples that ensure happens-before?
What do you use to pass exceptions without losing the stack trace?
What are the key differences between Java versions (7, 11, 17, 21)?
Tell me about Stream API. Which is faster — Stream API or a for loop?
What is a transaction? Tell about isolation levels and anomalies.
What is try-with-resources used for?
class ToInfinity { public static void main(String[] args) { //write code here for (int i = start; i <= start + 1; i++) { /* there should be an infinite loop here, nothing can be changed*/ } } }
Tell about the lifecycle of a bean in Spring.
What do the keywords volatile and synchronized guarantee?
What are the exceptions in Java? Checked and unchecked.
What functional interfaces do you know? Can you give examples?
If memory consumption increases in production, where should the investigation start?
What ways do you know to avoid blocking a method forever while waiting for an external dependency?
Tell me about the structure of HashMap.