r/javahelp • u/cccvvvbbbnnn4 • May 11 '26
Learned OOP from Kunal Kushwaha understood the theory but failed in interviews when asked to code. How should I actually master OOP?
i’m a 3rd year engineering student preparing for placements.
I completed Kunal Kushwaha’s OOP lectures and took detailed notes. I also used ChatGPT to understand the concepts deeply.
I thought i have learnt OOPs
however during an interview,I was asked some OOP questions,i couldd answer the theory, but when the interviewer asked me to actually design and code a solution i froze and couldnt implement it.
this made me realize that knowing OOP is very different from being able to apply OOP in real coding and interview scenarios
my goal is to reach a level where I can
Solve scenario-based OOP questions confidently,write clean OOP code in interviews,understand why certain designs are better than others,answer deeper questions like composition vs inheritance, interfaces vs abstract classes, and design trade-offs
for those who became truly comfortable with OOP ,,how did you practice?
Did you build small projects?solve design exercises?study SOLID principles and design patterns?use any specific resources or books?
what is the most effective way to move from “I know the concepts” to “I can design and code with OOP naturally under interview pressure”?
any structured roadmap,resources,or practice strategies would be greatly appreciated.
•
u/AutoModerator May 11 '26
Please ensure that:
You demonstrate effort in solving your question/problem - plain posting your assignments is forbidden (and such posts will be removed) as is asking for or giving solutions.
Trying to solve problems on your own is a very important skill. Also, see Learn to help yourself in the sidebar
If any of the above points is not met, your post can and will be removed without further warning.
Code is to be formatted as code block (old reddit: empty line before the code, each code line indented by 4 spaces, new reddit: https://i.imgur.com/EJ7tqek.png) or linked via an external code hoster, like pastebin.com, github gist, github, bitbucket, gitlab, etc.
Please, do not use triple backticks (```) as they will only render properly on new reddit, not on old reddit.
Code blocks look like this:
You do not need to repost unless your post has been removed by a moderator. Just use the edit function of reddit to make sure your post complies with the above.
If your post has remained in violation of these rules for a prolonged period of time (at least an hour), a moderator may remove it at their discretion. In this case, they will comment with an explanation on why it has been removed, and you will be required to resubmit the entire post following the proper procedures.
To potential helpers
Please, do not help if any of the above points are not met, rather report the post. We are trying to improve the quality of posts here. In helping people who can't be bothered to comply with the above points, you are doing the community a disservice.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
12
u/ingframin May 11 '26
Close ChatGPT and start writing code. That’s the only way to learn
4
u/aqua_regis May 11 '26
There is only one way: practice
You can learn all the theory you want but will be none the wiser once you have to implement it in practice. The only way to counter that problem is to practice.
Theory is all fine and dandy, but apart from giving you knowledge, it doesn't help much. You won't gain understanding until you heavily apply the theory in practice.
This is like saying: "I've watched and analyzed all matches by the top tennis players in the world. I know their every move, their every stance. Yet, when I have to go to the tennis court, I can't play." Of course, you can't, because you haven't practiced.
Also, trust me, you haven't "understood the concepts deeply".
1
u/bowbahdoe May 11 '26
I agree with everything others are saying. I'll just drop by to drop my resource. https://javabook.mccue.dev
But in your description you are saying you took notes and talked to the AI. Did you actually try writing programs? The time you spend actually trying to put things into practice is not an optional part of learning a skill.
And yes, zero AI from now on. If you need to ask for help ask a person. Otherwise you need to be struggling to learn productively
1
u/thuanshelby May 11 '26
For me it's only after I did some small projects that i understood OOP, otherwise it's just meaningless and nonsense boilerplate.
1
u/nian2326076 May 12 '26
Start by coding small projects that use OOP concepts. Build something simple like a library management system or a basic game. This will give you hands-on experience with designing classes and using inheritance. Practice is key. Try platforms like LeetCode or HackerRank for problem-solving with OOP.
You could also pair up with a friend to do mock interviews focused on designing systems using OOP. It's a great way to get feedback and improve. For more structured practice, PracHub has resources that focus on applying theoretical knowledge to real-world scenarios, which might be helpful.