Filter interviews by
Aptitude test as usual
I applied via Approached by Company and was interviewed in Mar 2024. There were 2 interview rounds.
HARMAN interview questions for designations
I applied via Approached by Company and was interviewed in Oct 2022. There were 2 interview rounds.
Method for deleting a node from a Linked List
Find the node to be deleted
Update the previous node's next pointer to skip the deleted node
Free the memory occupied by the deleted node
No, it is not possible in Java due to circular inheritance.
Circular inheritance is not allowed in Java.
It creates an infinite loop and leads to compile-time errors.
To avoid this, inheritance hierarchy should be designed carefully.
Example: Class A extends B, B extends C, and C extends D.
This creates a linear inheritance hierarchy and is allowed in Java.
Creating a custom immutable class in Java
Make the class final
Make all fields private and final
Do not provide any setter methods
Provide a constructor to initialize all fields
Override equals() and hashCode() methods
Prevent modification of mutable objects passed in constructor
Code to check if two strings are anagrams of each other.
Create two character arrays from the strings
Sort the arrays
Compare the sorted arrays
Time complexity of linked list operations is O(n) for traversal, insertion and deletion.
Traversal, insertion and deletion in linked lists take linear time.
Insertion and deletion at the beginning of the list is faster than at the end.
Doubly linked lists have slightly higher time complexity due to maintaining two pointers.
Get interview-ready with Top HARMAN Interview Questions
I applied via Approached by Company and was interviewed before May 2023. There were 2 interview rounds.
OOD (Object-Oriented Design) is essential for creating modular, reusable, and maintainable software systems.
OOD helps in organizing code into manageable components
Encourages code reusability through inheritance and polymorphism
Facilitates easier maintenance and updates
Promotes scalability and flexibility in software development
Enables better collaboration among team members
using namespace std; is a directive in C++ that allows the programmer to use all elements of the standard C++ library without specifying the std:: prefix.
It is used to avoid having to write std:: before standard library elements.
It should be used with caution as it can lead to naming conflicts.
Example: cout << 'Hello, World!'; instead of std::cout << 'Hello, World!';
Polymorphism is the ability of a function or method to behave differently based on the object it is acting upon.
Polymorphism allows objects of different classes to be treated as objects of a common superclass.
There are two types of polymorphism: compile-time (method overloading) and runtime (method overriding).
Example: Animal class with methods like eat() can be inherited by classes like Dog and Cat, which can override
A sorting algorithm is a method used to arrange elements in a specific order.
Common sorting algorithms include Bubble Sort, Selection Sort, Insertion Sort, Merge Sort, Quick Sort, and Heap Sort.
Bubble Sort compares adjacent elements and swaps them if they are in the wrong order.
Merge Sort divides the array into two halves, sorts them separately, and then merges them back together.
Quick Sort picks a pivot element and pa...
I applied via Campus Placement and was interviewed before Oct 2022. There were 3 interview rounds.
1 question on Data Structures and Algorithms
I applied via Referral and was interviewed before Apr 2022. There were 5 interview rounds.
General mathematics questions we be asked
Program name will be given we have write the coding
I applied via Approached by Company and was interviewed before Aug 2021. There were 3 interview rounds.
C++ & C Based Questions Mostly from Arrays, Linked List, Queues
To reverse a string, iterate through the string and append each character to a new string in reverse order.
Create an empty string to store the reversed string
Iterate through the original string from the end to the beginning
Append each character to the new string
Return the new string
I applied via Naukri.com and was interviewed before Jun 2021. There were 2 interview rounds.
Networking and linux internals
Top trending discussions
1 Interview rounds
based on 39 reviews
Rating in categories
Senior Software Engineer
1.7k
salaries
| ₹8 L/yr - ₹31.2 L/yr |
Technical Lead
1.5k
salaries
| ₹10.5 L/yr - ₹37 L/yr |
Software Engineer
1.3k
salaries
| ₹3.7 L/yr - ₹13.9 L/yr |
Senior Engineer
934
salaries
| ₹7.5 L/yr - ₹24.2 L/yr |
Senior Product Engineer
911
salaries
| ₹6 L/yr - ₹25.2 L/yr |
Bose
Jbl
Sennheiser
Sony