Question d’entretien chez TIAA

how hashmap works internally. contract between equals and hashcode method. methods present in Object class. WAP which accepts any text as an input and find whether if any repeated words are there in the text. linkedlist program for two linkedlists which meets at a particular node. unix command to search a particular string in multiple files. Rest WS architecture. And explanation of Post and Get request. Annotations of Rest WS. Exception handling in Rest. design Spring IoC container of your own. Spring beans scope. DI working principle xml parsers in java and how to read xml file in java. shallow n Deep cloning. LinkedList program. Junit Mockito framework and its working principle. Thread pool and thread dump. WAP which takes 2 inputs : 1st input - manger employee id 2nd input - 1 : 2 3 4 3 : 5 6 7 5 : 8 9 10 where 1 , 3 and 5 represents mangers empId and others represent emp id Now the for the 1st input the program shall return the empIds of all employees who are repprting to the manager directly or indirectly. sample input 3 1 : 2 3 4 3 : 5 6 7 5 : 8 9 10 sample output- 5 6 7 8 9 10 i solved it using Map<Integer, List<Integer>>