Round 1
Questions:
- Coding Question: Valid Anagram
- Find the highest odd element using streams:
int odd_highest = list.stream().filter(n -> n % 2 != 0).sorted(Comparator.reverseOrder()).findFirst();
- Collect duplicate elements present in the list using streams:
List<Integer> li = list.stream().filter(i -> Collections.frequency(list, i) > 1).collect(Collectors.toList());
- Theory Questions:
- Explain method overriding.
- Discuss exceptions (focused on priority).
- Explain serializable and provide a marker interface example.
- Differences between HashMap and ConcurrentHashMap.
- Spring Boot: Provide an example of dependencies and explain dependency injection.
- Microservices: Explain circuit breaker and design patterns used in projects.
Candidate's Approach
No approach provided.
Interviewer's Feedback
No feedback provided.