Hey there!
I sometimes do technical interview for java. So I thought I would publish some of the questions I shoot, and the qualities I look for in an answer.
Easy interview
If my ask is to go easy on the interviewee for a not much demanding role below are the few questions I ask.
What I look for in the answer is the clarity of thought and if they really understand the topic. I also look for a good attitude and keenness for learning.
OOPS concept
- What is inheritance and write a sample code
- Why multiple inheritance is not possible in java
- What is polymorphism and write a sample code (both overloading & overriding)
Core java
- How a String is stored, immutability, intern etc
- Autoboxing & unboxing
- What is serialization
Collections
- Create a list with some duplicates. Then remove the duplicates
- In what scenarios they would use arraylist & linkedlist implementation
- Give a scenario to write a stream
Basic SQL
- I will ask them to write a basic sql query where they have to join two tables and maybe get a max value of a column
General Questions
- If you encounter a problem with a web application (ex system unavailable error) how do you go about debugging.
- Tell me anything that challenged you technically and how you overcame it
Difficult interview
If I am asked to interview for a more challenging role This is how I go about it
Here I look for is their strength in each topic and how they approach to each problem even if they don't know the exact answer.
FizzBuzz
- Write a program to print n number in Fibonacci series (If they implement DP , I would be really impressed)
Programming questions
- Write a program to print sqrt of a number without using Math package (This is a question I recently asked but I would change whenever I come across some interesting problems)
System Design questions
- I will give a scenario with a bottleneck and ask them to go about the solution. For eg. design a asynchronous system in java
Performance related questions
- How do they find place where a system is slow and how do they go about resolving it.
- If they have knowledge on database, I ask how they go about sql tuning or what they consider while writing a new query
Along with this I ask them some core java questions on threads, equals & hash methods overriding, springboot etc
How do you feel about these questions. Let me know some of the interesting questions you have (been) asked.
Happy Friday!
Top comments (0)