Filter interviews by
Use hashmap to find duplicates in an array of strings
Create a hashmap to store each string as key and count as value
Iterate through the array and check if the string already exists in the hashmap
If it does, increment the count, else add it to the hashmap
Return the strings with count greater than 1 as duplicates
Singleton design pattern ensures a class has only one instance and provides a global point of access to it.
Create a private static instance variable in the class.
Provide a public static method to access the instance.
Ensure the constructor is private to prevent instantiation from outside the class.
transient and volatile are keywords in Java used for different purposes
transient keyword is used to indicate that a field should not be serialized when converting an object to byte stream
volatile keyword is used to indicate that a variable's value will be modified by different threads
transient keyword is used in serialization, while volatile keyword is used in multithreading
example: transient keyword - private transien...
Comparator and Comparable are interfaces in Java used for sorting objects.
Comparator interface is used to define custom sorting logic for objects.
Comparable interface is used to define natural ordering of objects.
Comparator is used when you want to sort objects based on multiple attributes.
Comparable is used when you want to sort objects based on a single attribute.
Example: Sorting a list of Person objects based on the...
I have the skills, experience, and passion to excel in this role.
I have a strong background in software development, with experience in multiple programming languages and frameworks.
I am a quick learner and enjoy tackling new challenges.
I am a team player and enjoy collaborating with others to achieve common goals.
I am passionate about software engineering and am always looking for ways to improve my skills and knowled...
I chose your company because of its reputation for innovation and its commitment to employee growth.
Your company has a strong reputation for innovation in the industry.
I was impressed by the emphasis on employee growth and development.
I believe that your company's values align with my own personal values.
I was excited about the opportunity to work with a talented team of engineers.
Your company's mission and vision reso
I am a software engineer with experience in developing and maintaining software applications.
I have a strong background in programming languages such as Java, C++, and Python.
I have worked on various projects, including developing web applications and implementing software solutions.
I am skilled in problem-solving and debugging, ensuring efficient and effective software development.
I have experience in collaborating wi...
I learned valuable teamwork and problem-solving skills during my summer internship.
Developed strong collaboration skills by working with a team of software engineers to complete projects
Gained experience in troubleshooting and debugging software issues
Learned to effectively communicate and present technical concepts to both technical and non-technical stakeholders
Improved problem-solving abilities by identifying and re...
Java is an object-oriented language while C is a procedural language.
Java is platform-independent while C is platform-dependent.
Java has automatic garbage collection while C requires manual memory management.
Java has built-in support for multithreading while C requires external libraries.
Java has a larger standard library compared to C.
Java is more secure than C due to its strong type checking and exception handling.
C ...
Pointers are variables that store memory addresses of other variables in programming languages.
Pointers allow direct access and manipulation of memory locations.
They are commonly used in programming languages like C and C++.
Pointers can be used to pass variables by reference, allowing modifications to the original value.
They can also be used to dynamically allocate memory.
Example: int* ptr; // declares a pointer to an
In 5 years, I see myself as a senior software engineer leading a team of developers.
Leading a team of developers
Working on complex projects
Continuing to learn and grow in my role
Contributing to the success of the company
I am a software engineer with experience in developing web applications and expertise in programming languages such as Java and Python.
Proficient in Java and Python programming languages
Experience in developing web applications using frameworks such as Spring and Django
Familiarity with database technologies such as MySQL and MongoDB
Strong problem-solving and analytical skills
Ability to work in a team and collaborate ef
My strengths include problem-solving skills and attention to detail. My weaknesses are sometimes being too critical of my own work and difficulty saying no.
Strengths: problem-solving skills, attention to detail
Weaknesses: being too critical of my own work, difficulty saying no
In the next 5 years, I see myself as a senior software engineer leading a team of developers.
I plan to continue learning and expanding my skillset
I hope to take on more leadership roles and mentor junior developers
I aim to contribute to the development of innovative software solutions
I plan to stay up-to-date with the latest technologies and industry trends
Yes, I know C language. Here's a program to print numbers from 1 to 10 excluding 5.
Use a loop to iterate from 1 to 10
Inside the loop, check if the current number is equal to 5
If it is not equal to 5, print the number
The question was about finding the average of a set of numbers.
I approached the problem by first summing all the numbers in the set.
Then, I divided the sum by the total number of elements in the set to find the average.
I used a loop to iterate through the set and keep track of the sum and count of elements.
based on 1 interview
Interview experience
Consultant
7.7k
salaries
| ₹0 L/yr - ₹0 L/yr |
Assistant Manager
6.9k
salaries
| ₹0 L/yr - ₹0 L/yr |
Associate Consultant
4.6k
salaries
| ₹0 L/yr - ₹0 L/yr |
Analyst
3.5k
salaries
| ₹0 L/yr - ₹0 L/yr |
Manager
2.9k
salaries
| ₹0 L/yr - ₹0 L/yr |
Cognizant
PwC
Capgemini