Sobes.tech

How can you connect a new data object (DTO) that cannot be changed with an existing DTO?

Junior — Middle
249

Question 7. There is a service ExampleService (see figure). If an external service calls the following methods in sequence: exampleService.getCityFromCache(100000); exampleService.getCity(100000); How many times will there be a call to CityDao::getCity if the cache was empty? @Component @RequiredArgsConstructor public class ExampleService { private final CityDao dao; @Cacheable public String getCityFromCache(int index) { return dao.getCity(index); } public String getCity(int index) { return getCityFromCache(index); } }

249

How can object behavior management be implemented through polymorphism in code?

Junior — Middle
249

How does a controller determine which method to handle based on the HTTP request?

Junior — Middle
249

What are the main advantages and disadvantages of using indexes in a database?

Junior — Middle
249

Explain the concept of cascading in the context of web development or programming.

Junior — Middle
249

Tell me about your experience

Senior
249

How to display 0 instead of NULL for departments without employees?

Senior
249

Will an index on owner_id be used for a query with a condition on likes_count?

249

What internal mechanisms are implemented in Parallel Stream to ensure parallel data processing?

Junior — Middle
249

What is the difference between using the package command and the install command in software management?

Junior — Middle
249

How does the map method work in the Optional class and what is it used for?

Junior — Middle
249

Is it possible to use the notify method on an Object without owning the synchronized lock?

Junior — Middle
249

What is the purpose of the double-checked locking mechanism in multithreaded programming?

Junior — Middle
249

What potential problems can arise from improper use of exceptions in code?

Junior — Middle
249

Are sharding and replication concepts related?

Junior — Middle
249

Do you evaluate the problem of cyclic dependencies in projects?

Junior — Middle
249

Is it recommended to use Kafka in all scenarios and projects?

249

Have you participated in creating or writing specifications for components in the Spring Framework?

Junior — Middle
249
/739