Filter interviews by
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
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.
E...
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
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<String> names = Arrays.asList("Alice", "Bob", "Charlie"); List<String> filteredNames = names.stream().filter(name -> name.startsWith("A")).collect(Collectors.toList());
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
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 ...
Creating an Entity Class in Java
Define class with @Entity annotation
Add @Id annotation for primary key
Include fields with appropriate data types
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 multi...
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, Con...
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.
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<String> names = Arrays.asList("Alice", "Bob", "Charlie"); List<String> filteredNames = names.stream().filter(name -> name.startsWith("A")).collect(Collectors.toList());
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
Top trending discussions
I applied via Campus Placement
Developed a web-based attendance management system and a mobile app for event management.
Created a database schema and implemented CRUD operations using PHP and MySQL.
Designed the user interface using HTML, CSS, and JavaScript.
Integrated Google Maps API for location tracking in the mobile app.
Implemented push notifications using Firebase Cloud Messaging.
Collaborated with a team of four to complete the projects within t...
I applied via Campus Placement
Aptitude test coducted online on hacker rank
Developed a web-based project management tool for tracking tasks and deadlines.
Used HTML, CSS, and JavaScript for front-end development
Implemented backend functionality using Node.js and MongoDB
Incorporated user authentication and authorization features
Utilized RESTful APIs for communication between front-end and back-end
Mcq+coding which are medium level questions
No, multiple inheritance is not allowed in Java.
Java does not support multiple inheritance for classes to avoid the diamond problem.
However, multiple inheritance is allowed for interfaces in Java.
Example: class A extends B, C is not allowed, but interface X extends Y, Z is allowed.
Static is used to define class-level variables and methods, while final is used to define constants and prevent inheritance or modification.
Static variables and methods belong to the class itself, while final variables cannot be changed once initialized.
Static members can be accessed without creating an instance of the class, while final members must be accessed through an instance.
Static variables are shared among all...
Data encapsulation is the concept of bundling data and methods that operate on the data into a single unit, known as a class.
Encapsulation hides the internal state of an object and only exposes the necessary functionalities through methods.
It helps in achieving data abstraction and information hiding.
Example: A class 'Car' encapsulates data like speed, color, and methods like accelerate() and brake().
I am a passionate software developer with experience in Java, Python, and web development.
Experienced in Java, Python, and web development technologies
Strong problem-solving skills
Team player with excellent communication skills
Company core values are the fundamental beliefs that guide the behavior and decisions of employees.
Integrity - acting with honesty and transparency in all dealings
Innovation - constantly seeking new and better ways to solve problems
Customer focus - prioritizing the needs and satisfaction of customers
Teamwork - collaborating effectively with colleagues to achieve common goals
I appeared for an interview in Nov 2020.
Round duration - 90 minutes
Round difficulty - Easy
You are given a string S
consisting of several words. Your task is to count the number of times each word appears in string S
. A word is defined as a sequence of...
Count the occurrence of each word in a given string.
Split the string into words using spaces as delimiters.
Use a hashmap to store the count of each word.
Iterate through the words and update the count in the hashmap.
Output each unique word with its occurrence count.
Round duration - 30 minutes
Round difficulty - Easy
Your task is to determine if two given strings are anagrams of each other. Two strings are considered anagrams if you can rearrange the letters of one string to form the...
Check if two strings are anagrams of each other by comparing their sorted characters.
Sort the characters of both strings and compare them.
Use a dictionary to count the frequency of characters in each string and compare the dictionaries.
Ensure both strings have the same length before proceeding with comparison.
Handle edge cases like empty strings or strings with different lengths.
Round duration - 45 minutes
Round difficulty - Medium
Find the total number of palindromic substrings in a given string STR
.
"abbc"
5
The palindromic substrings are: ["a", "...
Count the total number of palindromic substrings in a given string.
Iterate through each character in the string and expand around it to find palindromic substrings.
Use dynamic programming to store previously calculated palindromic substrings.
Consider both odd and even length palindromes while counting.
Example: For input 'abbc', palindromic substrings are ['a', 'b', 'b', 'c', 'bb']. Total count is 5.
To find the 4th highest salary from a table in a database, you can use a SQL query with the ORDER BY and LIMIT clauses.
Write a SQL query to select distinct salaries from the table in descending order.
Use the LIMIT clause to retrieve the 4th row from the sorted list.
The query would look like: SELECT DISTINCT salary FROM table_name ORDER BY salary DESC LIMIT 3, 1
Tip 1 : Be confident
Tip 2 : Focus on data structures and algorithms(if you have less than 6 months)
Tip 3 : Focus on competitive programming(if you have more than 6 months)
Tip 4 : Practice at least 200 questions of various topics on leetcode and also start doing contest on various platforms.
Tip 1 : You shouldn't lie on your resume.
Tip 2 : Write only those projects about which you are confident.
Data structures and computer fundamentals
Great round easy coding test fun
I am passionate about creating innovative software solutions and believe this company offers a great platform for growth and learning.
Passionate about creating innovative software solutions
Believe company offers great platform for growth and learning
I applied via Campus Placement and was interviewed before Feb 2023. There were 4 interview rounds.
3 rounds of basic aptitude questions
based on 1 interview experience
Difficulty level
Duration
Associate
5.2k
salaries
| ₹8 L/yr - ₹33.6 L/yr |
Senior Analyst
4k
salaries
| ₹4 L/yr - ₹17 L/yr |
Assistant Vice President
3.9k
salaries
| ₹16.5 L/yr - ₹48.4 L/yr |
Analyst
2.2k
salaries
| ₹3 L/yr - ₹13 L/yr |
Vice President
935
salaries
| ₹45 L/yr - ₹75 L/yr |
Barclays
JPMorgan Chase & Co.
Kotak Mahindra Bank
AU Small Finance Bank