//Given an array of numbers where all numbers except one have a pair, //find the number that appears only once // <= [1, 0, 3, -2, 9, 9, 1, -2, 0] // => 3 int find(int[] arr){ //TODO }
Java
public class ClassA { int a; @Override public boolean equals(Object obj) { //implementation if (this == obj) return true; if (!(obj instanceof ClassA)) return false; ClassA other = (ClassA) obj; return this.a == other.a; } } public class ClassB extends ClassA { int b; @Override public boolean equals(Object obj) { //implementation if (this == obj) return true; if (!(obj instanceof ClassB)) return false; if (!super.equals(obj)) return false; ClassB other = (ClassB) obj; return this.b == other.b; } } ClassB b1 = new ClassB(10, 20); ClassB b2 = new ClassB(10, 20); assertTrue(b1.equals(b2));
Describe the basic hierarchy of exceptions in Java. What are checked and unchecked exceptions?
Did you work with designers on the last project?
What version of Java was used in your project or work?
How is memory organized in Java (JVM)? What are the areas: stack, heap?
What protocol was used for interaction with [system/service]?
What happens if there are fewer partitions than consumers?
The product came with a request to develop a Loyalty service, which based on the number of delivered orders (master system for orders OMS) will provide the discount size to the order processing service (cashier). The Loyalty service will not have a front-end part for now, only a mapping in the database to store which discount corresponds to which number of delivered and not canceled orders. Something like: Number of Orders Discount [phone]% [phone]% [phone]% [phone]% It is necessary to design the service, propose integration mechanisms with the Order Processing Service and the Order Management Service. It is necessary to design the architecture of the service, which can be handed over to the development and deployment team.
What is gRPC and what are its advantages?
How can you prevent the Dead Letter Queue from stopping during repeated failures?
What scopes are available in Spring? What is singleton scope?
How did you manage to move abroad and work in Cyprus? What motivated you during relocation?
What delivery strategy is implemented in Kafka by default?
Is it optimal to use the backend as the main architectural component of the project?
What is the result returned by the Callable interface in Java?
What happens if B does not extend A, but both interfaces are independent with the same default method?
Have you encountered difficulties or unforeseen situations during project integration or launch?
Why are you changing jobs?
How is optimistic locking implemented and what are its features?