Sobes.tech

What is the purpose of the final modifier in Java and in what situations is its use justified?

Junior — Middle
336

What is the difference between static and dynamic binding in Java?

Middle
336

Could you explain what the SOLID acronym means in the context of object-oriented programming?

Junior — Middle
336

What is a constructor in Java?

Intern
336

How to register a JDBC driver?

Junior
336

Is it possible to create subclasses of the built-in String type in a programming language?

Junior — Middle
336

What is hashCode?

Junior
336

Can you explain what is meant by anti-pattern in programming?

Junior — Middle
336

What is the difference between well-formed XML and valid XML?

Middle
336

Which configuration will have priority: XML, Java, or annotations?

Middle
336

What is JavaServer Pages (JSP)?

Junior
336

How did you configure application parameters at your previous job?

Junior — Middle
336

@PutMapping("/create") public Book create(Map<String, Object> map) throws Exception { System.out.println("Check if book exists " + map); Book book = new ObjectMapper().convertValue(map, Book.class); Book b = repo.findByTitle(book.getTitle()); if (b != null) { throw new Exception("Book already exists"); } book.setId(UUID.randomUUID().toString()); repo.save(book); log.debug("Book {} by {} is created with id {}", book.getTitle(), book.getAuthor(), book.getId()); return book; } public BookStoreController(BooksRepository repo, Boolean bool, List<String> keys) { this.repo = repo; if (Boolean.TRUE.equals(bool)) { // check first key if(keys != null && !keys.isEmpty()){ String firstKey = keys.get(0); if (firstKey == "public") { for (String key : keys){ // ... some logic log.debug("Using key {}", key); }; } } } }

336

Is it allowed to have duplicate values within a Set collection?

Junior — Middle
336

Design a database schema for a cinema management system, considering information about halls, sessions, and seating.

Junior — Middle
336

What are the default equals and hashCode modifiers in Java?

Junior
336

How can a pessimistic locking mechanism be implemented to ensure data integrity in a multithreaded environment?

Middle — Middle+
336

What is sorting?

Junior
336
/735