How were your test coverage and vulnerability checks organized in the CI pipeline?
Java
What is an annotation in Java? How would you explain it to another developer?
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));
What does the method parallelStream do?
On which transport layer protocol does HTTP operate?
—SEPARATOR—
Is it possible to use a try-catch construct without specifying a catch block, and in which cases is this permissible?
How to accept a POST request with JSON on the Spring side? When does JSON convert to DTO?
Which command helps optimize queries in PostgreSQL?
How does valueOf differ from fromString?
What methods of thread synchronization do you know in Java?
How would you build the process of onboarding a junior into a large monolith?
What methods can be used to prevent the use of pessimistic locking in Java applications?
What do you know about the Saga pattern? When to apply orchestration and when choreography?
Tell about your experience using try, catch, and finally constructs in programming practice.
What are the disadvantages of the current approach of sorting the entire list each time getTop is called?
What is the complexity of the insert (put) algorithm in TreeMap?
Why can't we just use a single max variable instead of a second stack?
Is it possible to optimize the stack for memory so that there is no x2 consumption?
What is VACUUM in PostgreSQL and why is it needed?