Sobes.tech

What is the purpose of the 'final' keyword in Java (for fields, classes)?.

145

Can you name three examples that ensure happens-before?

143

What do you use to pass exceptions without losing the stack trace?

138

What are the key differences between Java versions (7, 11, 17, 21)?

135

Tell me about Stream API. Which is faster — Stream API or a for loop?

135

What is a transaction? Tell about isolation levels and anomalies.

135

What is try-with-resources used for?

134

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*/ } } }

134

Tell about the lifecycle of a bean in Spring.

132

What do the keywords volatile and synchronized guarantee?

129

What are the exceptions in Java? Checked and unchecked.

128

What functional interfaces do you know? Can you give examples?

121

If memory consumption increases in production, where should the investigation start?

121

What ways do you know to avoid blocking a method forever while waiting for an external dependency?

114

Tell me about the structure of HashMap.

108
/2