Sobes.tech

Is it possible to use a try-catch construct without specifying a catch block, and in which cases is this permissible?

Junior — Middle
192

How to accept a POST request with JSON on the Spring side? When does JSON convert to DTO?

Senior
192

Which command helps optimize queries in PostgreSQL?

Senior
192

How does valueOf differ from fromString?

Senior
192

What methods of thread synchronization do you know in Java?

Senior
192

How would you build the process of onboarding a junior into a large monolith?

192

What methods can be used to prevent the use of pessimistic locking in Java applications?

Junior — Middle
192

What do you know about the Saga pattern? When to apply orchestration and when choreography?

Senior
192

Tell about your experience using try, catch, and finally constructs in programming practice.

Junior — Middle
192

What are the disadvantages of the current approach of sorting the entire list each time getTop is called?

Senior
192

Why can't we just use a single max variable instead of a second stack?

192

Is it possible to optimize the stack for memory so that there is no x2 consumption?

192

How did you manage to move abroad and work in Cyprus? What motivated you during relocation?

Senior
192

How to run this code in multiple threads? Why can parallelStream() be dangerous?

192

/* The company provides a mass notification sending service for other businesses. A product owner has approached you with a task to create a notification filtering system considering user preferences. ## Definitions Notification: - notification id - notification type (EMAIL, SMS, PUSH) - recipient (user id) - message text Recipient may have preference settings: - allowed notification channels (list of types) - blocked senders (list of sender ids) Notification sending history: - list of notifications sent to the user ## Important User settings and notification history are provided by other system components. You need to design contracts to obtain this data. Storage implementation is not required. ## Task Write a notification filtering system that: - takes a list of notifications for filtering and a sender id as input - excludes notifications that do not match user preferences - implements duplicate message protection, including messages sent in the last 24 hours. Duplicates are considered messages with the same id addressed to the same user - returns a filtered list of notifications ready to be sent. Sending notifications is not part of your task - another team will handle sending the filtered list. Your task is only filtering. */ class NotificationFilter { UserSettingsService userSettingsService; NotificationHistoryService notificationHistoryService; public ??? filter(??? senderId, List<???> msgs) { // TODO implement } } interface UserSettingsService { // TODO any functions } interface NotificationHistoryService { // TODO any functions }

192

Tell us about a complex authorization task when transitioning from monolith to microservices.

192

What is MCP and how does it work?

Senior
192
/740