Sobes.tech

What are aspects in Spring AOP? What are they used for? Provide examples.

213

Tell me about your last place of work. What did you do, and what was the technical stack?

179

What is Spring context (ApplicationContext)?

169

What happens if the Spring context crashes during deployment in Kubernetes?

169

Tell about the development process (Agile/Scrum). How are tasks estimated?

165

Integer i = 300, j = 300; System.out.println(i == j);

158

How independently did you design solutions at work?

157

What is a volatile variable and what is it used for?

155

How can a thread indicate that it can be interrupted so that another thread can execute?

146

How does @Transactional work? What happens when a transactional method is called from within the same class?

146

What are liveness and readiness probes in Kubernetes? How do they differ?

146

How to create a transaction manually without the @Transactional annotation?

142

Tell me about the Circuit Breaker you implemented for integration with an external system.

142

How to construct dynamic queries when filter conditions are unknown in advance (e.g., 10 optional fields)?

140

Can you give a similar example with another type where '==' will give false?

136

How do you work with databases? Hibernate/JPA — how do you use it?

135

Input: nums = [0,1,2,4,5,7] Output: ["0->2","4->5","7"] public class DemoApplication { public static void main(String[] args) { int[] nums = {0,1,2,4,6,5,7,10}; System.out.println(summary(nums)); } public static List<String> summary(int[] nums){ List<String> result = new ArrayList<>(); int i = 0; int n = nums.length; while (i < n) { int start = nums[i]; while (i + 1 < n && nums[i+1] == nums[i] + 1){ i++; } int end = nums[i]; if (start == end){ result.add(String.valueOf(start)); } else { result.add(start + "->" + end); } i++; } return result; } }

111