Community Brands
The Nuance Group AG Interview Questions and Answers
Q1. 8)which java 8 features do you use in your current project
I use lambda expressions, streams, and default methods in my current project.
Lambda expressions: I use them to write more concise and functional code.
Streams: I use them for processing collections of data in a declarative way.
Default methods: I use them to provide default implementations in interfaces.
Q2. 7)Java program to count length of the string without using foreach and length function
The Java program counts the length of a string without using foreach and length function.
Iterate through each character of the string using a for loop
Increment a counter variable for each character encountered
Return the counter variable as the length of the string
Q3. 6)sql query for finding 2nd highest salary of employee
SQL query to find the 2nd highest salary of an employee.
Use the SELECT statement to retrieve the salaries in descending order.
Use the LIMIT clause to limit the result to the second row.
Use the OFFSET clause to skip the first row.
Combine the above steps in a single SQL query.
Q4. 4)How hashmap works internally
HashMap is an implementation of Map interface that stores key-value pairs using a hash table.
HashMap uses hashing to store and retrieve elements.
It uses an array of linked lists to handle collisions.
The hash code of the key is used to determine the index of the array.
If multiple keys have the same hash code, they are stored in the same linked list.
When retrieving a value, the hash code is used to find the correct linked list and then linearly search for the key.
Q5. 9)how to avoid hash collision
To avoid hash collisions, use a good hash function, increase the size of the hash table, and handle collisions using techniques like chaining or open addressing.
Use a good hash function that distributes the keys evenly across the hash table.
Increase the size of the hash table to reduce the chances of collisions.
Handle collisions using techniques like chaining (using linked lists) or open addressing (probing).
Chaining example: Store multiple values with the same hash key in a ...read more
Q6. 3)Types of iterator in java
There are three types of iterators in Java: Iterator, ListIterator, and Enumeration.
Iterator is the most commonly used iterator, used to traverse collections like ArrayList, HashSet, etc.
ListIterator is used to traverse lists and allows bidirectional traversal and modification of elements.
Enumeration is the oldest type of iterator, used to traverse legacy collections like Vector and Hashtable.
Interview Process at The Nuance Group AG
Top Java Software Developer Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month