I applied directly through the Career site of SAP Labs and got an Interview.
Round 1(Technical Round)
These are the questions that were asked in the first round:
- How is java Platform Independent(drilled down to basics) -> JVM, JRE
- Rate yourself in java.
- What is a classLoader? How is it used while running the program in Java?
- ClassNotFound Exception vs NoClassDefFound exception difference
- Why classNotFound Exception found at runtime only?
- String Pool - where it is present?
- What is intern() function?
- String Literals difference in == and equals
- String objects difference in == and equals
- Differences in Microservice and Monolithic services
- Some questions from my Resume, the project that I am working on.
- Swap x and y without using a temp variable
- Write all permutations of 3 character word
Even though the recruiter said it would be a DSA round, most of the questions were core Java questions. I was not able to answer all of them at the time, so I was not hopeful that the second round would be scheduled at all. However, I received a call a few days later saying that my second round would be scheduled for the following week.
Round 2(Technical Round)
These were the questions asked in this round:
- Do you know what is Builder Pattern? Write code for Builder Pattern.
- Write code for Singleton pattern.
- Print the main diagonal of the matrix. Note: Always use 1 loop and print arr[i][i]
- Write a code to work with 5 thread printing data one by one.
- Abstract class vs interface
- What is Encapsulation?
- What is AutoBoxing?
- Serialzable vs exteranlizable? what they are, how are they different?
- Static vs instance variable
- What is Synchronization? How can be achieve synchronization in Java Programs?
- Some other java questions
This round mainly focused on having me implement some problems, followed by some core Java questions. This round wenr very well and I almost answered all the questions in this round.
Verdict
Not selected. Not sure what went wrong in the second interview.