Sobes.tech

What are optimistic and pessimistic locking? How to implement them?

193

How do hash indexes differ from B-tree indexes? Which is preferable for searching by last names?

193

What is the fork system call in Unix-like operating systems?

Senior
192

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));

Senior
192

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

Can tests be improved, for example by reducing the amount of code?

192

How does valueOf differ from fromString?

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 are the disadvantages of the current approach of sorting the entire list each time getTop is called?

Senior
192

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

192

What salary expectation are you considering for the offer?

192

Is mastering new technologies an important aspect of candidate evaluation?

Junior — Middle
192

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

Senior
192

Каким образом TreeMap self-adjusts для обеспечения сбалансированности и эффективности работы?

Middle — Middle+
192

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

192
/730