Filter interviews by
I applied via Naukri.com and was interviewed before Nov 2021. There were 3 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.
Live coding on my technology
based on 2 reviews
Rating in categories
Senior Software Engineer
55
salaries
| ₹10.5 L/yr - ₹19.8 L/yr |
Software Engineer
55
salaries
| ₹6.8 L/yr - ₹14 L/yr |
Test Engineer
45
salaries
| ₹5.9 L/yr - ₹9 L/yr |
System Analyst
38
salaries
| ₹15 L/yr - ₹23 L/yr |
Senior System Analyst
27
salaries
| ₹18.7 L/yr - ₹35 L/yr |
TCS
Infosys
Wipro
HCLTech