It was the first round held virtually.
It started with a basic introduction and little about current project, understanding the tech stacks
I am listing out couple of questions which I was been asked
-> What are SOLID principles
-> Write a code snippet for Singleton class and make sure it is thread safe
-> What is volatile keyword in multithreading
-> How would you make tightly couple Monolithic application modular using SOLID principle
-> Write the code to do binary search in a sorted array
-> Write the code to show how the Single Responsibility is violated and give me the corrected code as well
-> Have you heard about CountDownLatch
-> Give me the time complexity for insertion, deletion, and search in HashMap, Binary Search Tree and Linked List
-> Give me the difference between Bubble sort, Insertion sort, Merge sort and Quick sort
-> He even asked something related to Springboot framework but I had no idea so I just passed the question and I really dont remember it either :P
-> Write the java function to read file where if the file is not read, you throw IOException, if you dont find the file while reading throw FileNotException and also try to add one custom Exception for any other issue you face.
-> If you have class person having age and name as data member, please write the code snippet to fetch all the persons with age > 25 and in sorted manner using Java Stream Api
-> How would you handle exceptions in stream api
The interview lasted for about an hour and felt like a rapid-fire session, with questions coming one after another. It served as a quick recap of everything I’ve studied so far. In terms of difficulty, I would rate it as Easy to Medium.
Although I wasn't familiar with Spring Boot, which might be a deciding factor for rejection, overall, it was still a positive and valuable experience.