Filter interviews by
Top trending discussions
I applied via Naukri.com and was interviewed in Mar 2024. There was 1 interview round.
A hashcode method generates a unique integer value for an object based on its properties.
Override the hashCode() method in Java to generate a unique integer value for an object.
Use the properties of the object to calculate the hash code.
Ensure that equal objects have the same hash code.
posted on 29 Jul 2024
Immutable class is a class whose state cannot be modified after creation.
Make all fields private and final
Do not provide setter methods
Ensure that any mutable objects within the class are also immutable
Lock and sync are both mechanisms used in Java for thread synchronization, but they have different implementations and use cases.
Lock is a low-level synchronization mechanism provided by the java.util.concurrent.locks package, while sync (synchronized keyword) is a high-level synchronization mechanism provided by Java.
Lock provides more flexibility and control over synchronization compared to sync.
Lock can be used to c...
I applied via LinkedIn and was interviewed in Jan 2024. There were 2 interview rounds.
Print Dice combination based on the rolled output
Trapping rain water and median of two sorted array
I was interviewed in Sep 2024.
HashMap is non-synchronized and allows null values, while HashTable is synchronized and does not allow null values.
HashMap is non-synchronized, meaning it is not thread-safe, while HashTable is synchronized and thread-safe.
HashMap allows null values for both keys and values, while HashTable does not allow null keys or values.
HashMap is generally preferred for non-thread-safe applications, while HashTable is used in mul
Equals method is used to compare the content of objects while hashcode method is used to generate a unique integer value for an object.
Equals method is used to compare the content of objects for equality.
Hashcode method is used to generate a unique integer value for an object.
Both methods are important for implementing proper object comparison and hashing in Java.
I am motivated to come to the office by the opportunity to work on challenging projects, collaborate with talented colleagues, and contribute to the success of the team.
Challenging projects provide a sense of accomplishment and growth
Collaborating with talented colleagues allows for learning and innovation
Contributing to the success of the team fosters a sense of purpose and fulfillment
Yes, I coached a junior developer on implementing design patterns in a project.
Provided guidance on how to apply design patterns in code
Reviewed their code and provided feedback for improvement
Encouraged them to ask questions and seek clarification
Node.js uses event-driven architecture where events trigger callbacks to handle asynchronous operations.
Node.js uses event loop to handle asynchronous operations efficiently
Events are emitted by various objects in Node.js like HTTP servers, file system, etc.
Callbacks are registered to handle events and execute code when events occur
Encapsulation is the concept of bundling data and methods that operate on the data into a single unit.
Encapsulation helps in hiding the internal state of an object and only exposing necessary functionalities.
It allows for better control over the data by preventing direct access from outside the class.
Encapsulation also helps in achieving data abstraction and information hiding.
Example: In a class representing a car, th...
To call a REST API, you can use tools like Postman or code in languages like JavaScript or Python.
Use tools like Postman to make HTTP requests to the API endpoints
In programming languages like JavaScript, use libraries like Axios or Fetch to make API calls
Include necessary headers, parameters, and authentication tokens in the request
Handle the response data accordingly, whether it's JSON, XML, or other formats
I applied via Company Website and was interviewed in Oct 2022. There were 2 interview rounds.
I prioritize my work and set boundaries to ensure a healthy work-life balance.
I prioritize my tasks and set realistic goals to manage my workload effectively.
I establish clear boundaries between work and personal life to avoid burnout.
I practice time management techniques, such as creating schedules and prioritizing tasks.
I make sure to take breaks and engage in activities outside of work to recharge.
I communicate open...
A positive quote for work can inspire and motivate individuals to achieve their goals and excel in their professional endeavors.
A positive attitude leads to positive outcomes.
Hard work and dedication are the keys to success.
Believe in yourself and your abilities.
Success is not final, failure is not fatal: It is the courage to continue that counts.
The only way to do great work is to love what you do.
Don't watch the cloc...
Interview experience
Senior Associate
312
salaries
| ₹3 L/yr - ₹10.6 L/yr |
Associate2
267
salaries
| ₹2.8 L/yr - ₹6.5 L/yr |
Team Lead
162
salaries
| ₹5.1 L/yr - ₹15 L/yr |
Associate
125
salaries
| ₹2 L/yr - ₹6 L/yr |
Assistant Manager
121
salaries
| ₹8.8 L/yr - ₹21.5 L/yr |
BNY
Northern Trust
HSBC Group
JPMorgan Chase & Co.