Filter interviews by
I applied via LinkedIn and was interviewed in May 2024. There was 1 interview round.
Data structures based questions
Top trending discussions
I applied via Company Website and was interviewed in Jul 2024. There was 1 interview round.
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
I applied via Company Website and was interviewed in Jul 2024. There was 1 interview round.
posted on 29 Jul 2024
NAAAAAAAAAAAAAAAAAAAAa
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...
posted on 7 May 2024
I applied via Naukri.com and was interviewed in Apr 2024. There were 2 interview rounds.
Builder/Factory Pattern is used to create objects with complex initialization logic.
Builder Pattern separates the construction of a complex object from its representation.
Factory Pattern creates objects without specifying the exact class of object that will be created.
Builder Pattern is often used to create immutable objects with many optional parameters.
Factory Pattern is used when there is a need to create multiple i...
Redux is used in React to manage the application state in a predictable way.
Centralized state management for React applications
Predictable state changes with actions and reducers
Easier debugging and testing of state changes
Facilitates communication between components
Filter a List using Streams in Java
Use the filter() method to apply a predicate to each element in the stream
Use collect() method to convert the stream back to a List
Example: List
Creating an Entity Class in Java
Define class with @Entity annotation
Add @Id annotation for primary key
Include fields with appropriate data types
There are three types of autowiring in Spring: byType, byName, and constructor.
byType: Spring looks for a bean of the same type and injects it.
byName: Spring looks for a bean with the same name and injects it.
constructor: Spring looks for a constructor and injects the arguments.
Lazy fetch loads data only when needed, while eager fetch loads all related data upfront.
Lazy fetch is more efficient for performance as it only loads data when required.
Eager fetch can lead to performance issues by loading unnecessary data upfront.
Lazy fetch is the default behavior in JPA, while eager fetch needs to be explicitly specified.
Example: Lazy fetch can be used for loading a list of items in a shopping cart ...
Transaction management in Hibernate ensures ACID properties for database operations.
Hibernate provides built-in transaction management support through Session interface.
Transactions can be managed programmatically using beginTransaction(), commit(), and rollback() methods.
Hibernate also supports declarative transaction management using annotations like @Transactional.
Transactions in Hibernate ensure Atomicity, Consiste...
Attached entities are actively managed by the persistence context, while detached entities are no longer actively managed.
Attached entities are being managed by the persistence context and any changes made to them will be automatically synchronized with the database.
Detached entities are not being managed by the persistence context and changes made to them will not be automatically synchronized with the database.
Entiti...
Creating two beans in Java using Spring framework
Use @Component annotation to define a bean
Specify the bean name using @Component("beanName")
Use @Autowired annotation to inject one bean into another
Sort an Employee HashMap based on keys or values
Use TreeMap to automatically sort by keys
Use Comparator to sort by values
Convert HashMap to List and then sort
I applied via Approached by Company
It was spring boot java based online round
Eager initialization creates the instance of Singleton class at the time of class loading, while lazy initialization creates the instance only when it is required.
Eager initialization can lead to resource wastage if the instance is never used.
Lazy initialization is more efficient as it only creates the instance when needed.
Eager initialization is thread-safe by default, while lazy initialization requires synchronizatio...
based on 1 interview
Interview experience
Senior Analyst
433
salaries
| ₹3 L/yr - ₹13 L/yr |
Associate
138
salaries
| ₹7.2 L/yr - ₹31 L/yr |
Associate Vice President
127
salaries
| ₹14.4 L/yr - ₹40 L/yr |
Vice President
69
salaries
| ₹22.5 L/yr - ₹75 L/yr |
Analyst
67
salaries
| ₹2.8 L/yr - ₹8.3 L/yr |
Barclays Investment Bank
JP Morgan Securities
Goldman Sachs
Morgan Stanley