r/learnjava • u/javinpaul • Nov 30 '15
133 Java Interview Questions Answers From Last 5 Years
r/learnjava • u/javinpaul • Nov 30 '15
r/learnjava • u/Armrootin • Dec 18 '25
I’ve never been fully satisfied with Lombok. I don’t really see the value of adding an external dependency for things that a modern IDE can already handle.
With the evolution of Java especially features like records the use of Lombok makes even less sense to me. What I don’t understand is why teams still continue to use it in new projects.
Am I missing something here, or can anyone explain where Lombok still provides real value today?
r/learnjava • u/alweed • Apr 12 '25
Hey folks
I’ve chatted with quite a few people who are learning Spring Boot through courses, YouTube & one thing that keeps coming up is:
“What does a real, enterprise-level Spring Boot application actually look like?”
So I’m thinking of putting together an open-source project where you’d get access to a partially built real-world-style Spring Boot application. The aim of this project would be to put you in shoes of a developer working for an enterprise.
The idea is to give you detailed written tasks like:
Download the project and help you set it up on your device
Implementing new features to meet specific requirements
Fixing bugs in already written code and writing tests
Refactoring and optimising code
Exposing useful metrics
Using Prometheus & Grafana to build dashboards
Integrating ActiveMQ to publish/consume events
And interacting with it all via a clean REST API
Would you be interested in something like this?
Let me know your thoughts, suggestions, or even feature ideas you’d like to learn hands-on.
UPDATE (13/04/25):
Thank you all for your interest and feedback. I hope to release this project in coming weeks and will make it open-source so that the community can contribute and add more learning material. I'll announce on this subreddit once it's rolled out.
You can join this discord server to stay up-to date on this project: https://discord.gg/GEWJbXmG5H
r/learnjava • u/No-Temperature-5135 • Mar 23 '25
Hi,
So I just finished my first sem uni in comp sci and we learned Java. In one class we just learned the fundamentals like OOP, Streams, Iterators and Collectors and stuff like that. In the other class we just had to built a game with libgdx.
So basically this is my all my experience and since I am in break I wanted to build a very simple CRUD web application in Java(since I already had exp. in this) and learned that i need SpringBoot.
I jumped in but now I am super overwhelmed. When I go watch youtube videos they already start in the first two minutes with unknown concepts.
I asked chatgpt to walk me through creating something simple but there is already so many stuff I either feel like i am just doing what it tells me too or end up asking questions for every keyword and get lost anyway.
Can someone please give me some pointers. Should i not start with SpringBoot? And how do I learn to build a webapp?
r/learnjava • u/SavageBeastMode85 • May 31 '22
Just to let people know that the 3rd edition of Head First Java is released today, at least here in the UK.
I have been using the 2nd edition, learning Java from scratch and have found it one of the best books for learning that I have ever used, and have been eagerly waiting for this new edition. The release date has changed a few times over the last year but Amazon is now showing that I can have it delivered tomorrow!
Highly recommended for anyone starting their Java journey.
r/learnjava • u/Alarming-Truck7675 • Jan 06 '22
Hey guys, I am a beginner in programming. No experience in coding at all and I wanna learn Java (not javascript lol). Can anyone recommend me any free online course or any youtube video where I can master Java? Love you guys
r/learnjava • u/[deleted] • Apr 14 '21
I work for a company and they hired a new guy in my team and he needs to learn Java. Someone recommended me to let him follow Java Programming Masterclass course from Tim Buchalka on Udemy.
Did any of you follow that course? If you did what's your opinion on it?
r/learnjava • u/davidgheo • Feb 11 '21
Hello, can anybody suggest some projects or exercises to practice those from above? I learned the theory but I feel like it's kind of useless if I don't write code to practice.
r/learnjava • u/[deleted] • Oct 23 '20
Hey everyone,
As the title states I want to build a Reddit bot using java. Unfortunately while searching for some learning materials and videos on YouTube I was only able to find stuff for python. So is it possible to build a Reddit bot or even a twitter bot using java? Thanks
r/learnjava • u/[deleted] • Mar 24 '20
With languages like C#, an executable file is generated in your project directory and it's ready to use as soon as you start; plus, you can send it to anybody at any point of time so they can run it with no problems at all. Now, with my simple Java app which includes some basic GUI, I had to dig up on dependencies, JARs, Maven and a bunch of other things that kept on getting more complicated the more I dug. Why isn't there a simple button in your IDE that would let your create an executable file? Is that connected with how Java programs are compiled into bytecode? How are Java desktop applications run then, if it doesn't seem so common for people to create an .exe file?
r/learnjava • u/ThatRandomGamerYT • Jan 27 '20
Here are a few beginner java/programming exercises for well, uhh, beginners to get out of that Tutorial watching phase. Try to complete these without one but you are allowed to search the web on how to implement stuff like a Scanner or stuff like that. Here is my GitHub repo for solutions(Note: Try to do it without my Github because the end goal is to teach you how to solve stuff. Your solution can differ, the end goal is the solve the problem)
Ill make more posts like these and update my Github with more programs from beginner to intermediate and some algorithm and design patterns. So keep on the lookout for stuff like this!
The exercises are:
A dice roll program. You press start and it "rolls" the "dice" and prints a random number from 1-6
A fortune cookie program: You press start and it prints a random fortune cookie message.
A console based calculator. You press start and it takes 3 inputs : The first number, the second number and the operation. Then it prints the result.
Good luck!
r/learnjava • u/anupsidedownpotato • Oct 04 '19
I’m current in the next CS class for my university and it’s absolutely awful. The professor didn’t teach hardly any java syntax or how to even write it just showed us some examples and said figure this out own your own and now I’m sitting frustrated out of my mind trying to do a project I don’t even know how to do. I really loved my last course bc of the professor and the way he taught python but this professor has made it so frustrating that I feel like dropping out.
r/learnjava • u/BlaiseSM • Jul 28 '19
Some new project-based learning using IDEA for all levels, including total newbie:
r/learnjava • u/[deleted] • Jun 11 '19
I have been learning Java for a few months. Finished part 1 of the Java MOOC. 2 weeks into the second.
I have been working in a it support job in an Indian MNC (I'm from India)
I am not happy with my work as it doesn't require much technical skills and want to get a job in development.
What framework/tools should I learn? Spring/ Hibernate?
I graduated in Electronics and Communication engineering and I had already learnt c/c++ programming, as well as assembly level programming of microcontroller like 8051.
r/learnjava • u/EnoughAd1470 • Oct 16 '26
As a 2026 B.Tech IT graduate, I've been learning Java and Spring Boot and building a Job Portal project.
One thing I've realized is that learning concepts is different from actually implementing them in a project.
I'm currently working on improving my backend skills and understanding how real-world applications are built.
For Java developers, what's one thing you wish you had learned earlier when starting your career?
r/learnjava • u/MartinDvoracek • May 03 '25
Hey r/learnjava community,
I’ve been tinkering with my workflow lately and realized that a handful of small tweaks have made a huge difference in my day‑to‑day. Stuff that’s so ingrained now I barely notice it, but going back feels like driving a car with square wheels.
For example, I used to let code quality warnings pile up until review time. Now I run SonarQube locally on every commit, and it’s like having a really picky rubber‑duck buddy pointing out my foibles. Rainbow Brackets in IntelliJ felt silly at first, but once you’ve seen those nested lambdas light up in different colors, you can’t unsee it. And adopting “commit early, push often” stopped merges from ever turning into nightmare sudoku puzzles.
On the coding side, I finally embraced functional‑style programming, lambdas, streams, the whole functional paradigm, and honestly, once you start chaining those stream operations you’ll never go back to manual loops. I’d ofc known lambdas and streams for ages, but always found manual loops clearer and easier to follow. Now it’s the exact opposite, and I use loops only when it's really necessary. Last but not least, lately I leaned into Lombok hard, annotating everything I can so I don’t waste time on boilerplate and can focus on the real logic.
But I know there are tons of other tricks out there. What’s one tiny habit, plugin, or cheat‑sheet you’ve picked up that’s now an unconscious part of your Java workflow and actually moves the needle? It could be anything - IDE shortcuts you swear by, Git hooks that save your bacon, a testing pattern you refuse to live without, whatever.
Would love to hear your go‑to game changers!
r/learnjava • u/Felizem_velair_ • Aug 25 '23
Giving up on The Odin Project, I decided to find a different course. It can be paid (not expensive though. I am poor) I searched a few languages and Python and Java seem to be popular. Python seems good but Java seems to be more advanced and it could be more interesting as a career path. But searching through reddit and other sources, its difficult to find the answer to where to learn it.
Some say Udemy, others say Hyperskill (which is expensive to me), Youtube, etc. The MOOC doesnt seem attractive to me because its similar to TOP. Lots of reading (I would prefer to watch videos form now on) and with the downside of using an IDE instead of teaching me to install and setup my own workspace.
I dont want to waste more time than I have already. This is why I need some guidance.
r/learnjava • u/smileruma • Aug 22 '21
Hi Guys,
I am currently looking out for java dev jobs (experienced) and most of java profiles are asking for spring, spring boot and mvc. Please suggest some good resources to prepare for spring. (I have no prior knowledge in spring)
r/learnjava • u/WarWithSelf • Jul 24 '21
I'm an experienced Software Engineer but very weak in concurrency because of no prior experience in that. I've been interviewing with several companies in which I was asked similar kind of questions as given below:
If you are designing a fantasy sports application in which there's a contest which can handle only 100 users. If 99 users are already registered for the contest and multiple users hit the PARTICIPATE button at the same time to become the 100th user, then how will you handle this in your application?
If you are designing a chess game, where multiple users are selecting the users of same level of competence to play with them. Then suppose at same time, users A and B choose the user C (to play with) at the same time, then how will you handle this?
I usually answer this by saying that I'll use synchronized block in Java or on Database side, I'll use Locking concept. But I'm not sure of either of them. So, can anyone tell here how do you answer such questions? Should one answer this in terms of Java Multithreading or DBMS or both? Please can anyone also tell me any resources to understand the theory to answer such type of questions or any website or YouTube channel where solutions are given to these kind of questions?
r/learnjava • u/chimchim102 • May 27 '21
Hey everyone! So I'm in a bit of a tough spot right now and I need help. I have always just build web applications so I have no idea on how I should start learning about building Java applications on desktop. If someone can guide me on this please that would be alot of help. I need to build a desktop application with Java and javafx but I'm not sure where to start learning. I do know Java but just as a programming language and not really sure how to build desktop applications with it. Where do I start? I need to use Java fx that I know. Are there any good books that guide you in building a desktop application with java fx? Or a good udemy course? Thanks!
r/learnjava • u/[deleted] • Jan 10 '21
This year i have decided to get hired as a software developer/ junior java developer. I am currently learning Java core. can someone help or guide me? have i chosen the right path. i want to do remote job maybe in usa/ canada/ uk/eu. I also started data stuctures and algo since i heard in interview it is asked. So what should i do? is learning java worth it?
i mean should i spend time learning JDB+JSP+SPRING after learning java??
or after learning java core i should go for android app development??
or after learning core java should i learn javascript properly and then spend life as a js developer?
THE MAIN REASON I STARTED JAVA IS TO UNDERSTAND HOW OOP WORKS AND LANGUAGES WORK. i started with C as it is in my university. Then i learned javascript caz i do html css and js. Now learning java to understand OOP.
r/learnjava • u/Aeternus44 • Nov 23 '20
Hope you all are doing well. I'm new to Java. I just learned that one uses "throws" when one doesn't want to handle the exception in the method that it occurs in, but the caller method. My question here might be stupid, but still, I would like to know in what way it is useful to opt for handling the exception outside of the method in which it occurs.
r/learnjava • u/IIwarrierII • Nov 03 '20
If I were to make the same thing in java would it now be as fast ?
r/learnjava • u/[deleted] • Nov 01 '20
Basically title. I’m looking for any suggestions of certain things any Java Developer should know, however basic or advanced as they may be. I’ve been going through Codecademy’s Java course as well as doing basic challenges online, but I’m looking for more applicable and useful things to know how to do. Thanks in advance!
Edit: Sorry to be the guy saying thanks in a post edit, but thanks! I’m compiling a list of all the specific topics and concepts you guys are listing, I really appreciate everyone’s guidance.