This is about my past interview of 2 years back. When I started to look out for product-based companies, at that time I had 3 years of experience
Tip 1: Don't lose confidence, if you are unable to solve some DSA questions, don't lose confidence, and try it again
Tip 2: Be regular in practising the DSA, and make notes of theory questions, which may be asked in some companies
Tip 3: You can try easy-level DSA questions and then start attending interviews, it will open up your mind and you will get to know what type of questions are being asked.
Tip 1: Keep the skills section clearly on the top, and mention the skills first for which the organization is looking, like Java8, Microservices, and Spring Boot.
Tip 2: Mention your total experience and contact details. Don't let HR count your experience from the period you spent with your previous organizations.
I had 2 days to take this online test. I took it at night. It consisted of 40 MCQ questions, primarily covering topics on multithreading, Spring concepts, and Java basics.
try{
//arithmetic Exception
}catch(Exception e){
}catch(AirthmeticException ae){
}
NO, AirthmeticException catch block should come above Exception.
Automatic type conversion is possible in which of the possible cases?
1. Byte to int 2.Int to long
3. Long to int 4. Short to int
Long to int is the answer.
public class Solution{
public static void main(String[] args){
short x = 10;
x = x * 5;
System.out.print(x);
}
}
1. 50
2. 10
3. compile time error
4. Exception
the answer is compile-time error.
In Java, arithmetic operations involving a short type will result in an int type. This is because Java promotes smaller types like byte and short to int during arithmetic operations. As a result, x * 5 produces an int, and assigning it back to a short variable without explicit casting causes a compile-time error.
It was in the afternoon, and the interview made me feel comfortable throughout. I enjoyed it, and it lasted for about 70 minutes. The interview began with basic questions about my experience and projects. Then, they asked Java basics questions about exception handling, OOP concepts, and runtime polymorphism. Finally, they posed one DSA question.



The given linked list is 1 -> 2 -> 3 -> 4-> NULL. Then the reverse linked list is 4 -> 3 -> 2 -> 1 -> NULL and the head of the reversed linked list will be 4.
Can you solve this problem in O(N) time and O(1) space complexity?
As I had practised DSA questions, so I didn't take much time to solve this
Write code for Producer Consumer problem in multithreading.
I used my IDE to solve this problem. I got stuck in between, but the interviewer gave me a hint, and finally, I was able to solve it.
First of all, this interview was rescheduled 3 times because their employee was not available due to some production issue. Finally, it happened. As usual, it started with my introduction, discussing my past work and the technologies I have used.
They asked me to design a system, where they want to create a single UI where the user can see his/her posts from social platforms like FB, Instagram etc. And they wanted if I post/ delete/ comment then it should get reflected on these social media platforms.
Tip 1: At that time, I didn't have much practice with system design questions. However, I had an advantage because I had worked on a project from scratch in my previous company.
Tip 2: Firstly, I gathered more information on how users would log into our system and how they would authorize us to fetch data on their behalf.
Tip 3: Then, I suggested that we needed to develop an adapter to translate posts from different social media platforms into our format.

Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
What is recursion?