Home
Materials
Blog
Pricing
For HR →
🇺🇸
English
Home
Positions
Tech lead java
Tech lead java
Description
Auto-generated position for Tech lead java
Interview Questions (161)
Q1
Can you describe a challenging technical problem you encountered in a Java project and how you resolved it?
Experience
Q2
How do you ensure code quality and maintain coding standards within your team during the development process?
Behavioral
Q3
Can you describe a complex Java architecture you designed and the key decisions that influenced your design choices?
Experience
Q4
How do you approach mentoring junior developers to ensure they follow best coding practices?
Behavioral
Q5
Can you describe a challenging Java project you led and the architectural decisions you made to overcome those challenges?
Experience
Q6
How would you handle a situation where a junior developer consistently submits code that does not meet the team's quality standards?
Behavioral
Q7
Is Java platform independent?
Technical
Q8
What are the top Java features?
Technical
Q9
What is JVM?
Technical
Q10
What is JIT?
Technical
Q11
What are memory storages available with JVM?
Technical
Q12
What is a classloader?
Technical
Q13
What is the difference between JVM, JRE, and JDK?
Technical
Q14
What are the differences between Java and C++?
Technical
Q15
Explain public static void main(String args[]) in Java.
Technical
Q16
What is Java String Pool?
Technical
Q17
What will happen if we don't declare the main as static?
Technical
Q18
What are packages in Java?
Technical
Q19
Why are packages used?
Technical
Q20
What are the advantages of packages in Java?
Technical
Q21
Explain different data types in Java.
Technical
Q22
When is a byte datatype used?
Technical
Q23
Can we declare a pointer in Java?
Technical
Q24
What is the default value of byte datatype in Java?
Technical
Q25
What is the default value of float and double datatype in Java?
Technical
Q26
What is the wrapper class in Java?
Technical
Q27
Why do we need wrapper classes?
Technical
Q28
Differentiate between instance and local variables.
Technical
Q29
What are the default values assigned to variables and instances in Java?
Technical
Q30
What is a class variable?
Technical
Q31
What is the default value stored in local variables?
Technical
Q32
Explain the difference between instance variable and a class variable.
Technical
Q33
What is a static variable?
Technical
Q34
What is the difference between System.out, System.err, and System.in?
Technical
Q35
What do you understand by an IO stream?
Technical
Q36
What is the difference between the Reader/Writer and InputStream/OutputStream class hierarchies?
Technical
Q37
What are the super most classes for all the streams?
Technical
Q38
What are the FileInputStream and FileOutputStream?
Technical
Q39
What is the purpose of using BufferedInputStream and BufferedOutputStream classes?
Technical
Q40
What are FilterStreams?
Technical
Q41
What is an I/O filter?
Technical
Q42
How many ways can you take input from the console?
Technical
Q43
What is the difference in the use of print, println, and printf?
Technical
Q44
What are operators?
Technical
Q45
How many types of operators are available in Java?
Technical
Q46
Explain the difference between >> and >>> operators.
Technical
Q47
Which Java operator is right associative?
Technical
Q48
What is the dot operator?
Technical
Q49
What is covariant return type?
Technical
Q50
What is the transient keyword?
Technical
Q51
What is String in Java?
Technical
Q52
What are the differences between String and StringBuffer?
Technical
Q53
What are the differences between StringBuffer and StringBuilder?
Technical
Q54
Which among StringBuilder or StringBuffer should be preferred when there are a lot of updates required to be done in the data?
Technical
Q55
Why is StringBuffer called mutable?
Technical
Q56
How is the creation of a String using new() different from that of a literal?
Technical
Q57
What is an array in Java?
Technical
Q58
On which memory are arrays created in Java?
Technical
Q59
What are the types of an array?
Technical
Q60
Why does the Java array index start with 0?
Technical
Q61
What is the difference between int array[] and int[] array?
Technical
Q62
How to copy an array in Java?
Technical
Q63
What do you understand by the jagged array?
Technical
Q64
Is it possible to make an array volatile?
Technical
Q65
What are the advantages and disadvantages of an array?
Technical
Q66
What is an object-oriented paradigm?
Technical
Q67
What are the main concepts of OOPs in Java?
Technical
Q68
What is a deadlock? How can you prevent it?
Technical
Q69
What’s the purpose of `volatile`?
Technical
Q70
How does `ThreadLocal` work?
Technical
Q71
When should you use `Callable` over `Runnable`?
Technical
Q72
How is `HashMap` implemented internally?
Technical
Q73
What is the difference between `ArrayList` and `LinkedList`?
Technical
Q74
When to use `ConcurrentHashMap` vs `Collections.synchronizedMap()`?
Technical
Q75
What is fail-fast vs fail-safe iterator?
Technical
Q76
How do `TreeMap` and `HashMap` differ?
Technical
Q77
What are the four pillars of OOP in Java?
Technical
Q78
What is the difference between composition and inheritance?
Technical
Q79
What is the Liskov Substitution Principle?
Technical
Q80
Can an interface have static methods?
Technical
Q81
What is garbage collection in Java?
Technical
Q82
Explain the Java memory model.
Technical
Q83
What is PermGen vs Metaspace?
Technical
Q84
How does G1GC differ from CMS?
Technical
Q85
How can you detect and fix memory leaks?
Technical
Q86
What is a functional interface?
Technical
Q87
Difference between `map()` and `flatMap()` in Streams?
Technical
Q88
What are method references?
Technical
Q89
What is Optional and how should it be used?
Technical
Q90
What is the purpose of default methods in interfaces?
Technical
Q91
How does Spring Boot auto-configuration work?
Technical
Q92
Difference between `@Component`, `@Service`, `@Repository`?
Technical
Q93
How does Spring manage bean lifecycle?
Technical
Q94
What is the role of `@ConditionalOnProperty`?
Technical
Q95
How do you implement inter-service communication?
Technical
Q96
What is the difference between synchronous and asynchronous calls?
Technical
Q97
How do you implement retry, fallback, and circuit breaker?
Technical
Q98
How do you ensure backward compatibility between services?
Technical
Q99
What’s the role of API Gateway in microservice architecture?
Technical
Q100
How do you secure REST endpoints?
Technical
Q101
What is the difference between OAuth and JWT?
Technical
Q102
How do you implement RBAC in Spring Security?
Technical
Q103
How do you protect microservices against DDOS or abuse?
Technical
Q104
What is rate limiting and how do you implement it?
Technical
Q105
What is Spring Cloud Config Server?
Technical
Q106
How do you implement distributed tracing?
Technical
Q107
How does actuator help in production?
Technical
Q108
How to monitor microservices in real time?
Technical
Q109
How do you achieve zero-downtime deployment?
Technical
Q110
What is blue-green deployment?
Technical
Q111
What happens if a service crashes? How do you recover?
Technical
Q112
How do you handle data consistency in distributed transactions?
Technical
Q113
What is a Saga pattern and when should you use it?
Technical
Q114
What is the Singleton pattern? How do you implement it in Java?
Technical
Q115
How is Factory pattern different from Abstract Factory?
Technical
Q116
What is the Strategy pattern?
Technical
Q117
Where is the Builder pattern commonly used?
Technical
Q118
What is the Observer pattern?
Technical
Q119
Explain the Proxy pattern with real-world usage.
Technical
Q120
Difference between Adapter and Decorator pattern?
Technical
Q121
What is the Template Method pattern?
Technical
Q122
When do you use Command pattern?
Technical
Q123
What’s the benefit of Chain of Responsibility?
Technical
Q124
What is Dependency Injection? How does Spring use it?
Technical
Q125
How is MVC implemented in Spring?
Technical
Q126
What is AOP? Common use cases?
Technical
Q127
How is Lazy Initialization useful in patterns?
Technical
Q128
What’s the difference between Composition and Aggregation?
Technical
Q129
Can patterns introduce complexity? How do you balance it?
Technical
Q130
What’s the role of the Mediator pattern?
Technical
Q131
Example of Flyweight pattern in Java APIs?
Technical
Q132
How do you reverse a LinkedList without using extra space?
Technical
Q133
Write a function to check if a string is a palindrome.
Technical
Q134
What is the time complexity of HashMap operations?
Technical
Q135
Explain binary search algorithm.
Technical
Q136
How does QuickSort work?
Technical
Q137
What’s the difference between BFS and DFS?
Technical
Q138
When is a heap used in Java?
Technical
Q139
Implement LRU cache.
Technical
Q140
What’s a Trie? Use case?
Technical
Q141
What is the difference between a stack and a queue?
Technical
Q142
How do you detect a cycle in a graph?
Technical
Q143
How do you find the intersection of two arrays?
Technical
Q144
What’s the difference between Array and LinkedList?
Technical
Q145
What is dynamic programming?
Technical
Q146
What is memoization?
Technical
Q147
Difference between INNER JOIN and LEFT JOIN?
Technical
Q148
What is normalization?
Technical
Q149
How to prevent SQL Injection in Java?
Technical
Q150
What is indexing? How does it work?
Technical
Q151
Difference between clustered and non-clustered index?
Technical
Q152
What is ACID in databases?
Technical
Q153
Explain isolation levels.
Technical
Q154
What are transactions and how are they managed in Spring?
Technical
Q155
What’s a deadlock in DB?
Technical
Q156
How to profile slow queries?
Technical
Q157
What’s the use of `JOIN FETCH` in JPQL?
Technical
Q158
How do you ensure consistency in distributed DBs?
Technical
Q159
What is the difference between optimistic and pessimistic locking?
Technical
Q160
When to use NoSQL over RDBMS?
Technical
Q161
What’s a primary key vs unique key?
Technical
Copy