Filter interviews by
Top trending discussions
The contract between hashCode and equals method is that if two objects are equal according to the equals method, then their hash codes must also be equal.
hashCode and equals method must be consistent - if two objects are equal according to equals method, their hash codes must be equal
If two objects have the same hash code, they may or may not be equal according to equals method
Overriding equals method in a class requir...
Java 8 introduced several new features including lambda expressions, functional interfaces, streams, and default methods in interfaces.
Lambda expressions allow you to pass functions as arguments.
Functional interfaces have a single abstract method and can be used with lambda expressions.
Streams provide a way to work with sequences of elements.
Default methods allow interfaces to have method implementations.
Ways to start a thread in Java
Extending the Thread class and overriding the run() method
Implementing the Runnable interface and passing it to a Thread object
Using a thread pool from the Executors class
The thread will continue running as it is already active
The thread will not be started again if it is already running
Attempting to start a thread that is already running will not have any effect
The thread will continue its execution without any interruption
Join method is used to wait for a thread to finish its execution, while sleep method is used to pause the execution of a thread for a specified amount of time.
Join method is used to wait for a thread to finish its execution before moving on to the next task.
Sleep method is used to pause the execution of a thread for a specified amount of time, allowing other threads to run.
Example: thread1.join() will wait for thread1 ...
I was interviewed in Jul 2024.
Microservices can introduce complexity, communication overhead, and potential performance issues.
Increased complexity due to managing multiple services
Communication overhead between services
Potential performance issues due to network latency
Difficulty in maintaining consistency across services
No, @FunctionalInterface cannot be extended. Map and flatMap are default methods in the interface and cannot be overridden.
No, @FunctionalInterface cannot be extended as it is a single abstract method interface.
Map and flatMap are default methods in the interface and cannot be overridden.
Example: public interface MyInterface { void myMethod(); default void myDefaultMethod() { // implementation } }
I applied via Company Website and was interviewed in Mar 2024. There were 5 interview rounds.
30 multiple choice questions
Two coding questions
I applied via Referral and was interviewed in Dec 2023. There were 3 interview rounds.
Kadane's Algorithm is used to find the maximum subarray sum in an array.
Iterate through the array and keep track of the maximum sum ending at each index.
If the sum at any index becomes negative, reset the sum to 0.
Return the maximum sum found.
Example: For array [-2, 1, -3, 4, -1, 2, 1, -5, 4], the maximum subarray sum is 6 (from index 3 to 6).
Reverse a linked list by changing the pointers direction
Iterate through the linked list and change the direction of pointers
Use three pointers - current, previous, and next to reverse the list
Update the head of the list to the last node after reversing
I applied via LinkedIn and was interviewed in Mar 2024. There was 1 interview round.
I applied via Naukri.com and was interviewed in Apr 2024. There was 1 interview round.
Java progaming, coding
Few programs to write and execute
Interview experience
based on 1 review
Rating in categories
Associate Analyst
58
salaries
| ₹1 L/yr - ₹4 L/yr |
Software Engineer
18
salaries
| ₹4 L/yr - ₹8 L/yr |
Analyst
14
salaries
| ₹1.8 L/yr - ₹3.5 L/yr |
Senior Software Engineer
8
salaries
| ₹6.5 L/yr - ₹15 L/yr |
Software Developer
7
salaries
| ₹3.6 L/yr - ₹12.1 L/yr |
Xoriant
NeoSOFT
FirstCry
Iris Software