Sobes.tech

What are the differences between stack and heap from the perspective of multithreading?

Middle
368

What is livelock?

Middle+
367

What are the differences between Thread.sleep() and Thread.yield() methods?

Middle
366

Why should you use configuration through annotations instead of configuration through XML?

Middle
365

What are the minimum and maximum values of the integer data type in Java?

Junior
363

How can a class be implemented so that its state is immutable after creation?

Junior — Middle
AstonAston
363

What is a ThreadLocal variable?

Middle
363

What is better to use: ArrayList or LinkedList if I want to delete an element from the middle of the list?

Middle
362

How does the context work in Java?

Middle
362

What is the difference between JOIN and UNION?

Junior
361

What should be used to work with complex queries containing many parameters?

Middle
360

How to create a custom serialization protocol?

Senior
360

What is the purpose of CompletableFuture in Java?

Middle
359

What are optimistic and pessimistic locking?

Middle
359

How would you implement sending a message to a client considering the possibility of transaction cancellation?

Middle+
358

What is an antipattern and which antipatterns are you familiar with?

Middle
357

What is the difference between the interrupted() and isInterrupted() methods in Java?

Middle
357

Calculate the difference between the largest and smallest DELIVERY orders for each currency. Return the result for each currency, sorted in ascending order of the difference. /** * Returns a map of {currency (sorted by difference) – difference between the largest and smallest DELIVERY order for that currency}. * If there is only one order for a currency, the difference is 0. * Example input: * [ * Order(DELIVERY, "EUR", 2000), * Order(DELIVERY, "USD", 15), * Order(DELIVERY, "RUB", 200), * Order (PICKUP, "RUB", 1250), * Order (DELIVERY, "USD", 35), * Order (PICKUP, "USD", 55), * Order (DELIVERY, "RUB", 100) * ] * * Expected output: * ["EUR" -> 0.0, "USD" -> 20.0, "RUB" -> 100.0] * */ Map<String, Double> getMaxMinusMinDeliveryMapByCurrency(List<OrderData> orderDataList) { }

Middle+
Мираполис
356

What are non-blocking algorithms?

Middle+
356

Can you explain the principle of Stream API and how it helps process data in Java?

Junior — Middle
AstonAston
356
/729