Home
Materials
Blog
Pricing
For HR →
🇺🇸
English
Home
Positions
Middle Backend Java Developer
Middle Backend Java Developer
Description
Auto-generated position for Middle Backend Java Developer
Interview Questions (192)
Q1
Can you explain how you would implement a multithreaded application in Java, and what challenges you might face?
Technical
Q2
Describe a time when you had to resolve a conflict within your team. What was your approach?
Behavioral
Q3
Can you explain how Spring Security manages authentication and authorization in a Java application?
Technical
Q4
Describe a challenging project you worked on where you had to implement multithreading in Java. What was your role and what was the outcome?
Experience
Q5
Can you explain how you would implement a RESTful API using Spring Boot and ensure it follows best practices for security?
Technical
Q6
Can you explain the difference between Spring MVC and Spring WebFlux and when to use each?
Technical
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
Why is Java a platform independent language?
Technical
Q69
Why is Java not a pure object oriented language?
Technical
Q70
What is the difference between Heap and Stack Memory in Java?
Technical
Q71
Can Java be said to be the complete object-oriented programming language?
Technical
Q72
How is Java different from C++?
Technical
Q73
Why does Java not make use of pointers?
Technical
Q74
What do you understand by an instance variable and a local variable?
Technical
Q75
What is data encapsulation?
Technical
Q76
Tell us something about JIT compiler.
Technical
Q77
Can you tell the difference between equals() method and equality operator (==) in Java?
Technical
Q78
How is an infinite loop declared in Java?
Technical
Q79
Briefly explain the concept of constructor overloading.
Technical
Q80
Define Copy constructor in Java.
Technical
Q81
Can the main method be overloaded?
Technical
Q82
Comment on method overloading and overriding by citing relevant examples.
Technical
Q83
A single try block and multiple catch blocks can co-exist in a Java Program. Explain.
Technical
Q84
Explain the use of final keyword in variable, method and class.
Technical
Q85
Do final, finally and finalize keywords have the same function?
Technical
Q86
Is it possible that the ‘finally’ block will not be executed? If yes then list the case.
Technical
Q87
When can you use super keyword?
Technical
Q88
Can the static methods be overloaded?
Technical
Q89
Why is the main method static in Java?
Technical
Q90
Can the static methods be overridden?
Technical
Q91
Difference between static methods, static variables, and static classes in Java.
Technical
Q92
What is the main objective of garbage collection?
Technical
Q93
What part of memory - Stack or Heap - is cleaned in garbage collection process?
Technical
Q94
What are shallow copy and deep copy in Java?
Technical
Q95
Although inheritance is a popular OOPs concept, it is less advantageous than composition. Explain.
Technical
Q96
What is the difference between ‘>>’ and ‘>>>’ operators in Java?
Technical
Q97
What are Composition and Aggregation? State the difference.
Technical
Q98
How is the ‘new’ operator different from the ‘newInstance()’ operator in Java?
Technical
Q99
What is a deadlock? How can you prevent it?
Technical
Q100
What’s the purpose of `volatile`?
Technical
Q101
How does `ThreadLocal` work?
Technical
Q102
When should you use `Callable` over `Runnable`?
Technical
Q103
How is `HashMap` implemented internally?
Technical
Q104
What is the difference between `ArrayList` and `LinkedList`?
Technical
Q105
When to use `ConcurrentHashMap` vs `Collections.synchronizedMap()`?
Technical
Q106
What is fail-fast vs fail-safe iterator?
Technical
Q107
How do `TreeMap` and `HashMap` differ?
Technical
Q108
What are the four pillars of OOP in Java?
Technical
Q109
What is the difference between composition and inheritance?
Technical
Q110
What is the Liskov Substitution Principle?
Technical
Q111
Can an interface have static methods?
Technical
Q112
What is garbage collection in Java?
Technical
Q113
Explain the Java memory model.
Technical
Q114
What is PermGen vs Metaspace?
Technical
Q115
How does G1GC differ from CMS?
Technical
Q116
How can you detect and fix memory leaks?
Technical
Q117
What is a functional interface?
Technical
Q118
Difference between `map()` and `flatMap()` in Streams?
Technical
Q119
What are method references?
Technical
Q120
What is Optional and how should it be used?
Technical
Q121
What is the purpose of default methods in interfaces?
Technical
Q122
How does Spring Boot auto-configuration work?
Technical
Q123
Difference between `@Component`, `@Service`, `@Repository`?
Technical
Q124
How does Spring manage bean lifecycle?
Technical
Q125
What is the role of `@ConditionalOnProperty`?
Technical
Q126
How do you implement inter-service communication?
Technical
Q127
What is the difference between synchronous and asynchronous calls?
Technical
Q128
How do you implement retry, fallback, and circuit breaker?
Technical
Q129
How do you ensure backward compatibility between services?
Technical
Q130
What’s the role of API Gateway in microservice architecture?
Technical
Q131
How do you secure REST endpoints?
Technical
Q132
What is the difference between OAuth and JWT?
Technical
Q133
How do you implement RBAC in Spring Security?
Technical
Q134
How do you protect microservices against DDOS or abuse?
Technical
Q135
What is rate limiting and how do you implement it?
Technical
Q136
What is Spring Cloud Config Server?
Technical
Q137
How do you implement distributed tracing?
Technical
Q138
How does actuator help in production?
Technical
Q139
How to monitor microservices in real time?
Technical
Q140
How do you achieve zero-downtime deployment?
Technical
Q141
What is blue-green deployment?
Technical
Q142
What happens if a service crashes? How do you recover?
Technical
Q143
How do you handle data consistency in distributed transactions?
Technical
Q144
What is a Saga pattern and when should you use it?
Technical
Q145
What is the Singleton pattern? How do you implement it in Java?
Technical
Q146
How is Factory pattern different from Abstract Factory?
Technical
Q147
What is the Strategy pattern?
Technical
Q148
Where is the Builder pattern commonly used?
Technical
Q149
What is the Observer pattern?
Technical
Q150
Explain the Proxy pattern with real-world usage.
Technical
Q151
Difference between Adapter and Decorator pattern?
Technical
Q152
What is the Template Method pattern?
Technical
Q153
When do you use Command pattern?
Technical
Q154
What’s the benefit of Chain of Responsibility?
Technical
Q155
What is Dependency Injection? How does Spring use it?
Technical
Q156
How is MVC implemented in Spring?
Technical
Q157
What is AOP? Common use cases?
Technical
Q158
How is Lazy Initialization useful in patterns?
Technical
Q159
What’s the difference between Composition and Aggregation?
Technical
Q160
Can patterns introduce complexity? How do you balance it?
Technical
Q161
What’s the role of the Mediator pattern?
Technical
Q162
Example of Flyweight pattern in Java APIs?
Technical
Q163
How do you reverse a LinkedList without using extra space?
Technical
Q164
Write a function to check if a string is a palindrome.
Technical
Q165
What is the time complexity of HashMap operations?
Technical
Q166
Explain binary search algorithm.
Technical
Q167
How does QuickSort work?
Technical
Q168
What’s the difference between BFS and DFS?
Technical
Q169
When is a heap used in Java?
Technical
Q170
Implement LRU cache.
Technical
Q171
What’s a Trie? Use case?
Technical
Q172
What is the difference between a stack and a queue?
Technical
Q173
How do you detect a cycle in a graph?
Technical
Q174
How do you find the intersection of two arrays?
Technical
Q175
What’s the difference between Array and LinkedList?
Technical
Q176
What is dynamic programming?
Technical
Q177
What is memoization?
Technical
Q178
Difference between INNER JOIN and LEFT JOIN?
Technical
Q179
What is normalization?
Technical
Q180
How to prevent SQL Injection in Java?
Technical
Q181
What is indexing? How does it work?
Technical
Q182
Difference between clustered and non-clustered index?
Technical
Q183
What is ACID in databases?
Technical
Q184
Explain isolation levels.
Technical
Q185
What are transactions and how are they managed in Spring?
Technical
Q186
What’s a deadlock in DB?
Technical
Q187
How to profile slow queries?
Technical
Q188
What’s the use of `JOIN FETCH` in JPQL?
Technical
Q189
How do you ensure consistency in distributed DBs?
Technical
Q190
What is the difference between optimistic and pessimistic locking?
Technical
Q191
When to use NoSQL over RDBMS?
Technical
Q192
What’s a primary key vs unique key?
Technical
Copy