GAVS Technologies
TTK Healthcare Interview Questions and Answers
Q1. What are the interfaces and classes in java collection ?
Java collection framework provides interfaces and classes to store, manipulate, and retrieve collections of objects.
Interfaces: List, Set, Map, Queue, Deque
Classes: ArrayList, LinkedList, HashSet, HashMap, PriorityQueue
Example: List interface is implemented by classes like ArrayList and LinkedList
Q2. Write a sql query to find the maximum mark of maths subject in a student table?
SQL query to find the maximum mark of maths subject in a student table.
Use the MAX() function to find the maximum mark in the maths subject column.
Specify the maths subject column in the query.
Include the student table name in the query.
Q3. Print the duplicate character occurrence in a string?
Print duplicate character occurrences in a string.
Iterate through the string and store character counts in a HashMap.
Print characters with count greater than 1 to find duplicates.
Q4. Print the character occurance in a string?
Count the occurrence of each character in a given string.
Create a map to store character counts
Iterate through the string and update the counts in the map
Print the character counts from the map
Q5. Print the differences between the array elements?
Use nested loops to compare each pair of elements and print the differences.
Use nested loops to compare each pair of elements in the array.
Calculate the absolute difference between each pair of elements.
Print the differences between the array elements.
Q6. Print the duplicate elements count in a list?
Count duplicate elements in a list of strings.
Create a HashMap to store the count of each element in the list.
Iterate through the list and update the count in the HashMap.
Finally, iterate through the HashMap and print the count of elements with count greater than 1.
Interview Process at TTK Healthcare
Reviews
Interviews
Salaries
Users/Month