Sobes.tech

@Data @Entity @Table(name = "_store") public static class Book { @Id private String id; private String title; private String author; private int price; @Transient private String tmp; @Enumerated(EnumType.STRING) private BookType type; } public enum BookType { COMMON, PREMIUM; }

192

```java // 2 public class Interfaces { public static void main(String[] args) { A a = new A() {}; B b = new B() {}; AB ab = new AB(); a.print(); b.print(); ab.print(); } public interface A { default void print() { System.out.println("interface A"); } } public interface B extends A { default void print() { System.out.println("interface B"); } } public static class AB implements A, B { } } ```

Senior
192

How do you feel about AI potentially replacing developers? How do you see development in 2-3 years?

192

What is the difference between Hibernate and JPA?

Senior
191

Is it possible to implement a RESTful API relying entirely on the DELETE HTTP method for all operations?

Junior — Middle
191

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

191

In what form did the requirements for the tasks come to you?

191

How to solve the data inconsistency problem: an external call was successful, but saving to the database failed?

191

How can you view or display the current Instance object in the program?

Junior — Middle
191

If there is a chain of objects that refer to each other, at what point can a specific object be deleted?

191

If the number of tasks is floating (from units to hundreds), what type of thread pool should be chosen?

Senior
191

What are Spring Boot starters? How do they differ from regular libraries? What is auto-configuration?

191

What are your thoughts on writing tests?

191

List the transaction isolation levels and briefly explain their purposes.

191
/746