Filter interviews by
I applied via Naukri.com and was interviewed in Jan 2023. There were 2 interview rounds.
Top trending discussions
I applied via Approached by Company
HashMap is a data structure that stores key-value pairs and uses hashing to quickly retrieve values based on keys.
HashMap internally uses an array of linked lists to store key-value pairs.
When a key-value pair is added, the key is hashed to determine the index in the array where it will be stored.
If multiple keys hash to the same index, a linked list is used to handle collisions.
HashMap uses the hashCode() method of ke...
JDK 8 features include lambda expressions, functional interfaces, streams, and default methods.
Lambda expressions allow you to write code in a more concise and readable way.
Functional interfaces enable the use of lambda expressions.
Streams provide a way to work with sequences of elements efficiently.
Default methods allow interfaces to have concrete methods.
Date and Time API improvements.
It was medium level question
Java hash map is a data structure that stores key-value pairs and uses hashing to efficiently retrieve values based on keys.
HashMap in Java implements the Map interface and allows null keys and values.
It uses hashing to store and retrieve key-value pairs, providing O(1) time complexity for get() and put() operations.
Example: HashMap
posted on 19 Oct 2023
I applied via Naukri.com and was interviewed in Sep 2023. There were 3 interview rounds.
posted on 9 Jan 2023
Find the second largest element from the array.
Sort the array in descending order and return the second element.
Iterate through the array and keep track of the two largest elements.
Use a priority queue to find the second largest element.
Sort array and return second last element
Use built-in sort function
Access second last element using array index -2
I applied via Recruitment Consulltant and was interviewed in Nov 2021. There were 4 interview rounds.
Interview experience
based on 31 reviews
Rating in categories
Design Engineer
329
salaries
| ₹2.2 L/yr - ₹9 L/yr |
Senior Engineer
157
salaries
| ₹4.3 L/yr - ₹17.2 L/yr |
Lead Engineer
153
salaries
| ₹5.8 L/yr - ₹18 L/yr |
Engineer
143
salaries
| ₹3 L/yr - ₹10 L/yr |
Senior Design Engineer
131
salaries
| ₹4.2 L/yr - ₹14.1 L/yr |
TCS
Infosys
Wipro
Tech Mahindra