How to clear tough Java questions during Technical interviews

Hemanth Peela
4 min readMar 17, 2022
Best JAVA Interview Preparation — READY SET GO

At some point of time during the preparation for any technical interview or during the process, one will have a deja-vu like we are learning similar to Algebra during our school day again.

Java is very vast and every new LTS Java version our knowledge will be outdated and still we have to prep up or refresh the new Java skills during the course of time.

So here I am with this new blog, whoever has a fear for the technical round in java. If you follow this blog and practice couple of months, you will feel pretty confident for your technical rounds. So let us not wait for any other moment and deep dive into the blog.

Let us understand from the interviewer's perspective what they seek from the candidate during the interview. The main intention for any technical round for the company is they will be evaluating three aspects there in the candidate or not i.e,

  1. Basics: How well does he know the SOLID Principles of Java?
  2. Approach: How efficient and less code he will write for the algorithm?
  3. Weightage: It is not how much he has experience in the project or years. Does he know the essence of the futuristic way of writing the code?

An algorithm or problem might be simple, one should always know how many different ways the code can be written. Always as a developer, one needs to develop that skill.

To understand these three qualities I will explain in detail how to prepare each aspect and in a particular flow. Following this approach, you will definitely nail any technical round.

Basics: Always know the basics and don't spend much time mastering it, anyhow it will be descriptive and easy to forget after a few months. So only brush up do not research more it will end up consuming your time and effort.

The below link will suffice to brush up on the basic concepts. https://www.geeksforgeeks.org/java-programming-basics/

Approach: This must be a dominant phase in your prep, all your skills are evaluated mostly here. so experience, practice and patience matter here. so embrace for the shift, overnight it is not possible to master this skill. Over the years and passion for your work will be easily reflected.

In a short (let’s consider two months will be a good amount of time) for your preparation for applying to any MNCs. Every day, if you can spend at least 1 hour, will suffice.

Note**: Never try to code easy programs, always try to learn difficulty algorithms and ways to approach it. During the course of time, the difficulty level will be eased and you get to know how to approach any algorithm easily. Always start as an experienced not as a beginner.

Practise algorithm based questions in the link below: https://app.codility.com/programmers/lessons/1-iterations/

There are a lot of best websites that will provide 30 Days code challenge enrol for those. Try to solve at least one question a day.

Leetcode: https://leetcode.com/discuss/general-discussion/655704/

Code Academy: https://www.codecademy.com/30daychallenge

Hackerrank: https://www.hackerrank.com/domains/tutorials/30-days-of-code

If you follow these above links, trust me the rusty sword will turn into an axe, your coding level will be on the next level. You feel the difference whenever you encounter a difficult algorithm you can crack it very easily.

Weightage: On completion of 1st month with above two skills, 2nd month will be research-oriented and this will be very interesting. You will get to know the essence of the IoT and the Developer community.

From the above two skills (Basics and Approach) you will be able to figure out the solution for the code. So you should ask yourself is it the right way or any other easier way for the solution, this question makes you an Engineer not just a developer but an ENGINEER I repeat. If you think of more solutions for on problem, you tend to learn more in the process. That is what we all are trained for or studied. To be an Engineer one should be Fungilble, Resilient and Embracing the change.

Note**: Always contribute to the developer communities in any possible way, so it can help others one way or the other.

Always looks for the Java community's latest updates. Keep practising Dynamic programming find out the best solutions from the below links.

All the links which I have provided are best off to my knowledge, only intention is to educate fellow engineers and be passionate about the work we do.

If you follow all three skills which I have mentioned above, you will be reaching great heights and feel confident about your effort. Hope this blog helps you to crack the technical rounds.

Keep Coding and Keep Smiling :)

Please follow me for more Technical updates and news.

--

--

Hemanth Peela

Hemanth Peela is an AVP at WellsFargo, an expert on Full Stack Development, Loves Travelling and Photography. Gadget Guru and Gaming Addict & Marvel Fanatic.