Sobes.tech

How are parameters passed to methods in Java — by reference or by value?

209

What are the @Primary and @Qualifier annotations used for in Spring?

198

What is the N+1 problem in Hibernate and how to solve it?

195

Tell me about Inversion of Control and Dependency Injection.

193

Tell me about the garbage collector in Java.

179

What is the difference between stack and heap in Java? Where are strings stored?

167

What will this test output? @Test public void test50() { List<Integer> numbers = List.of(1, 2, 3, 4, 5); numbers.stream() .map(x -> { System.out.println(x); return x; }) .filter(x -> x > 2) .map(x -> { System.out.println(x); return x; }) .toList(); }

166

Tell me about race condition.

162

How to swap the values of two variables without using a third variable?

161

Tell me about the Strategy pattern.

159

What is WebSocket? What is it used for?

158

Tell me about Kafka: the main components on the Java side.

157

Tell me about Spring Security: filter chain, SecurityContext, JWT authentication.

154

When might the @Transactional annotation not work?

154

What cache types of beans have you used in Spring? What is the purpose of the prototype?

153

SELECT id, total, (SELECT SUM(hours * rate) FROM invoice_lines WHERE invoice_id = invoices.id) AS actual_sum FROM invoices WHERE total <> (SELECT SUM(hours * rate) FROM invoice_lines WHERE invoice_id = invoices.id);

150

Tell me about Gradle and Maven build tools. Which one have you worked with more?

148

What collections do you know? Tell about the main implementations of List. How does ArrayList differ from LinkedList?

146

Что такое дженерики и для чего они используются?

145

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

145
/2