Home
Materials
Blog
Pricing
For HR →
🇺🇸
English
Home
Positions
Senior developer Java
Senior developer Java
Description
Auto-generated position for Senior developer Java
Interview Questions (113)
Q1
Can you describe a challenging bug you encountered in a Spring Boot application and how you resolved it?
Technical
Q2
Tell me about a time when you had to work in a team to meet a deadline. What was your role?
Behavioral
Q3
Can you describe your experience with building microservices using Spring Boot and how you managed service communication?
Experience
Q4
How would you handle a situation where a critical microservice goes down in production?
Situational
Q5
List three Collections interfaces and the basic contract of each. List concrete implementations of each, how they differ, and performance characteristics in space and time.
Technical
Q6
Describe the contract of equals and hashCode. Why is it important that if you implement one, that you implement both?
Technical
Q7
What is a deadlock? How can you prevent it?
Technical
Q8
What is a race condition and how do you avoid it?
Technical
Q9
What are the different statement types and why would you use each?
Technical
Q10
How do you prevent SQL injection attacks?
Technical
Q11
What are transactions?
Technical
Q12
Give an overview of Hibernate and ORM. How do you load objects into the session? What does the session do with the objects while in the session? What is the difference between getting a persistent object from the session and querying for persistent objects?
Technical
Q13
When is it better to use plain SQL instead of ORM?
Technical
Q14
What are some ways for the client to obtain a reference to the DataSource from the app server?
Technical
Q15
What is the difference between SOAP-based web services and REST-based web services?
Technical
Q16
Describe SOAP and WSDL.
Technical
Q17
What exactly is REST? What is the purpose of each of the HTTP verbs? What is idempotence? What is content-negotiation?
Technical
Q18
What is decoupling? Why are loosely-coupled classes desirable? What are some drawbacks?
Technical
Q19
What is cohesion? Why are highly cohesive classes desirable? What are some drawbacks?
Technical
Q20
Describe polymorphism. What is the importance of contracts between interfaces and concrete types? Why is polymorphic code desirable? What are some drawbacks?
Technical
Q21
What’s the purpose of `volatile`?
Technical
Q22
How does `ThreadLocal` work?
Technical
Q23
When should you use `Callable` over `Runnable`?
Technical
Q24
How is `HashMap` implemented internally?
Technical
Q25
What is the difference between `ArrayList` and `LinkedList`?
Technical
Q26
When to use `ConcurrentHashMap` vs `Collections.synchronizedMap()`?
Technical
Q27
What is fail-fast vs fail-safe iterator?
Technical
Q28
How do `TreeMap` and `HashMap` differ?
Technical
Q29
What are the four pillars of OOP in Java?
Technical
Q30
What is the difference between composition and inheritance?
Technical
Q31
What is the Liskov Substitution Principle?
Technical
Q32
Can an interface have static methods?
Technical
Q33
What is garbage collection in Java?
Technical
Q34
Explain the Java memory model.
Technical
Q35
What is PermGen vs Metaspace?
Technical
Q36
How does G1GC differ from CMS?
Technical
Q37
How can you detect and fix memory leaks?
Technical
Q38
What is a functional interface?
Technical
Q39
Difference between `map()` and `flatMap()` in Streams?
Technical
Q40
What are method references?
Technical
Q41
What is Optional and how should it be used?
Technical
Q42
What is the purpose of default methods in interfaces?
Technical
Q43
How does Spring Boot auto-configuration work?
Technical
Q44
Difference between `@Component`, `@Service`, `@Repository`?
Technical
Q45
How does Spring manage bean lifecycle?
Technical
Q46
What is the role of `@ConditionalOnProperty`?
Technical
Q47
How do you implement inter-service communication?
Technical
Q48
What is the difference between synchronous and asynchronous calls?
Technical
Q49
How do you implement retry, fallback, and circuit breaker?
Technical
Q50
How do you ensure backward compatibility between services?
Technical
Q51
What’s the role of API Gateway in microservice architecture?
Technical
Q52
How do you secure REST endpoints?
Technical
Q53
What is the difference between OAuth and JWT?
Technical
Q54
How do you implement RBAC in Spring Security?
Technical
Q55
How do you protect microservices against DDOS or abuse?
Technical
Q56
What is rate limiting and how do you implement it?
Technical
Q57
What is Spring Cloud Config Server?
Technical
Q58
How do you implement distributed tracing?
Technical
Q59
How does actuator help in production?
Technical
Q60
How to monitor microservices in real time?
Technical
Q61
How do you achieve zero-downtime deployment?
Technical
Q62
What is blue-green deployment?
Technical
Q63
What happens if a service crashes? How do you recover?
Technical
Q64
How do you handle data consistency in distributed transactions?
Technical
Q65
What is a Saga pattern and when should you use it?
Technical
Q66
What is the Singleton pattern? How do you implement it in Java?
Technical
Q67
How is Factory pattern different from Abstract Factory?
Technical
Q68
What is the Strategy pattern?
Technical
Q69
Where is the Builder pattern commonly used?
Technical
Q70
What is the Observer pattern?
Technical
Q71
Explain the Proxy pattern with real-world usage.
Technical
Q72
Difference between Adapter and Decorator pattern?
Technical
Q73
What is the Template Method pattern?
Technical
Q74
When do you use Command pattern?
Technical
Q75
What’s the benefit of Chain of Responsibility?
Technical
Q76
What is Dependency Injection? How does Spring use it?
Technical
Q77
How is MVC implemented in Spring?
Technical
Q78
What is AOP? Common use cases?
Technical
Q79
How is Lazy Initialization useful in patterns?
Technical
Q80
What’s the difference between Composition and Aggregation?
Technical
Q81
Can patterns introduce complexity? How do you balance it?
Technical
Q82
What’s the role of the Mediator pattern?
Technical
Q83
Example of Flyweight pattern in Java APIs?
Technical
Q84
How do you reverse a LinkedList without using extra space?
Technical
Q85
Write a function to check if a string is a palindrome.
Technical
Q86
What is the time complexity of HashMap operations?
Technical
Q87
Explain binary search algorithm.
Technical
Q88
How does QuickSort work?
Technical
Q89
What’s the difference between BFS and DFS?
Technical
Q90
When is a heap used in Java?
Technical
Q91
Implement LRU cache.
Technical
Q92
What’s a Trie? Use case?
Technical
Q93
What is the difference between a stack and a queue?
Technical
Q94
How do you detect a cycle in a graph?
Technical
Q95
How do you find the intersection of two arrays?
Technical
Q96
What’s the difference between Array and LinkedList?
Technical
Q97
What is dynamic programming?
Technical
Q98
What is memoization?
Technical
Q99
Difference between INNER JOIN and LEFT JOIN?
Technical
Q100
What is normalization?
Technical
Q101
How to prevent SQL Injection in Java?
Technical
Q102
What is indexing? How does it work?
Technical
Q103
Difference between clustered and non-clustered index?
Technical
Q104
What is ACID in databases?
Technical
Q105
Explain isolation levels.
Technical
Q106
What are transactions and how are they managed in Spring?
Technical
Q107
What’s a deadlock in DB?
Technical
Q108
How to profile slow queries?
Technical
Q109
What’s the use of `JOIN FETCH` in JPQL?
Technical
Q110
How do you ensure consistency in distributed DBs?
Technical
Q111
What is the difference between optimistic and pessimistic locking?
Technical
Q112
When to use NoSQL over RDBMS?
Technical
Q113
What’s a primary key vs unique key?
Technical
Copy