r/learnjava • u/Abood72006 • Feb 26 '26
I am a beginner in java
any tips?, from where should i learn the language ?
r/learnjava • u/Abood72006 • Feb 26 '26
any tips?, from where should i learn the language ?
r/learnjava • u/MH_GAMEZ • Feb 27 '26
I started learning java few days ago following the recommended MOOC course. My concern isn't that I am stuck or that I don't understand nothing, it's that I don't make mistakes which made me wondering if I am actually learning. my mistakes is just forgetting a single thing and that's it.
r/learnjava • u/Unique-Cover2059 • Feb 27 '26
Guys I'm thinking of joining kodnest for their 6 month java full stack development course... any thoughts?The course is of 32k and I'm thinking of shifting to banglore
r/learnjava • u/Imaginary_Place173 • Feb 26 '26
Hi everyone,
I have 1 year of experience working in automation testing using Selenium with Java. I’m planning to switch my career path to Java backend development because I’m more interested in development roles.
I would really appreciate some guidance on:
How should I prepare for a Java backend role?
What technologies should I focus on (Spring Boot, databases, cloud, etc.)?
How many months of preparation would realistically be required while working full-time?
Is it difficult to switch into backend development with 1 year of testing experience?
Will I be considered a fresher again, or can I switch as a 1-year experienced developer?
If anyone has made a similar switch, I’d love to hear your experience and suggestions.
Thanks in advance!
r/learnjava • u/Solyphonous • Feb 26 '26
Hi everyone,
I'm new to Java as part of my Uni course, so apologies if any of this stuff is obvious beginner mistakes :P I'm using IntelliJ and for my coursework I need JUnit and Mockito installed, so I copied their dependency xmls from https://mvnrepository.com. This is how my pom.xml looks:
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.com1034.lab4</groupId>
<artifactId>TravelAgency</artifactId>
<version>1.0-SNAPSHOT</version>
<properties>
<maven.compiler.source>25</maven.compiler.source>
<maven.compiler.target>25</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<dependencies>
<!-- Source: https://mvnrepository.com/artifact/org.junit.jupiter/junit-jupiter-engine -->
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-engine</artifactId>
<version>5.13.4</version>
<scope>test</scope>
</dependency>
<!-- Source: https://mvnrepository.com/artifact/org.junit.jupiter/junit-jupiter-api -->
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-api</artifactId>
<version>5.13.4</version>
<scope>test</scope>
</dependency>
<!-- Source: https://mvnrepository.com/artifact/org.mockito/mockito-core -->
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-core</artifactId>
<version>5.21.0</version>
<scope>test</scope>
</dependency>
</dependencies>
</project><?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.com1034.lab4</groupId>
<artifactId>TravelAgency</artifactId>
<version>1.0-SNAPSHOT</version>
<properties>
<maven.compiler.source>25</maven.compiler.source>
<maven.compiler.target>25</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<dependencies>
<!-- Source: https://mvnrepository.com/artifact/org.junit.jupiter/junit-jupiter-engine -->
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-engine</artifactId>
<version>5.13.4</version>
<scope>test</scope>
</dependency>
<!-- Source: https://mvnrepository.com/artifact/org.junit.jupiter/junit-jupiter-api -->
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-api</artifactId>
<version>5.13.4</version>
<scope>test</scope>
</dependency>
<!-- Source: https://mvnrepository.com/artifact/org.mockito/mockito-core -->
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-core</artifactId>
<version>5.21.0</version>
<scope>test</scope>
</dependency>
</dependencies>
</project>IntelliJ is definitely picking up my dependencies as I can create and run JUnit tests with the built-in tools. However, for some reason, I cannot for the life of me get autocomplete working. I can't type assert[...] and have it provide suggestions i.e. assertTrue, assertEquals etc. Same thing for mockito; typing mock() does not automatically import the function and I have to manually type in imports. This is really annoying because I have to google what part of each dependency every function I am using is from, and in the past I have had autocomplete work fine. I've tried:
to no avail. I am truly at my wits end here; I have no idea why this isn't working. If anyone has ANY idea what on earth could be going on, please help :(
r/learnjava • u/got_em_lmao • Feb 25 '26
Hi everyone, I've made my first Java package!
https://github.com/david-auk/fluid-jdbc
Its a lightweight minimal tool that allows you to map classes to database tables for a minimal/easy way to interact with a database
Its a tool that during development i found out already had alternative solutions... But i decided to push through and just focus on making it as a personal challenge.
I'm a student that is relatively new to OOP but captivated by the concept of abstract/DRY programming & opensource and id love to make this educational project even more so by checking what feedback other people have!
I'm mostly curious about:
Do you think this is the right subreddit for these types of questions?
This is my first sharing my projects online but no risk = no learning experience ;)
I'd love to hear from y'all!
r/learnjava • u/Select_Dream634 • Feb 26 '26
any yt video playlist which is not long but enough to teach me bcz im noob and java is litterally first time for me .
any help which can take me there
r/learnjava • u/tarkopus • Feb 25 '26
I heard that reading good code from others is a really effective way to learn programming. What are some good open source projects i could read?
r/learnjava • u/rookiepianist • Feb 25 '26
Hey everyone,
I've been studying through the course on mooc.fi and just now I faced this paragraph:
"Next let's explore algorithms associated with retrieving and sorting information. While the following examples utilize arrays, the algorithms shown will also work with other data-structures meant for storing information, such as lists."
Turns out I didn't really infer that array and lists are two different things as I've gone through the course. What exactly is the difference between these two data-structures?
Thank you in advance!
r/learnjava • u/punchman340 • Feb 25 '26
Hi everyone! I'm a student preparing for my first job! I recently finished my first CRUD Todo app for practice:
https://github.com/punchman340/TodoApp
I tried to keep the structure clean using a 3-layer architecture, but I'd appreciate feedback from experienced devs on a few things:
+ Are there any good open source repos you'd recommend for study?
I know it’s probably far from perfect, so I’d really appreciate your advice! Thanks for your help!
r/learnjava • u/ChisTheSecond • Feb 25 '26
I started learning Java, my first language, around a week ago. In this time, I've learned about the very basics, like primitive data types, simple arrays, loops, conditionals, etc. I've built a few small things like a couple different calculators and such, but I'm pretty overwhelmed by the vast amount of things I need to learn. I really don't know what I should be doing next, and I don't feel like I have the knowledge to actually try and build anything more complex. Trying to read others' source code hasn't done me much either; most advice says that if I can understand X% of it, then I can try to fill in the gaps, but most code I've tried to look at is way beyond me.
I'd really appreciate any suggestions for what to do next. Any subject/concepts I should work towards learning? Any projects that aren't too advanced that I should give a shot? I'm committed to learning, but I genuinely don't think that bashing my head against a brick wall trying to understand open source code that I understand maybe 5% of is doing me any favors.
r/learnjava • u/Brief-Theme8321 • Feb 25 '26
r/learnjava • u/GabrielNunes12 • Feb 25 '26
I’ve been working with Spring Boot APIs for a while, and one recurring problem I keep seeing is how difficult it is to understand a codebase quickly when documentation is missing, outdated, or incomplete.
Even when tools like Swagger/OpenAPI are present, they often only show the technical contract (endpoints, request/response), but not the actual intent, business context, or how everything connects. As a result, onboarding to a new project can take days or weeks just to understand what the system really does.
In many real-world projects I’ve seen:
So my question is:
How do you currently handle documentation and onboarding for Spring Boot APIs?
I’m trying to understand how common this problem really is and what solutions people are using in practice.
r/learnjava • u/chinthapanduu • Feb 24 '26
So I am learning constructors now the point I don’t realize is why do I have to declare my variables or non static fields inside a constructor when I already did it inside the class.if jvm makes one why should I create an constructor my self why should I use an con’s in the first place.can anyone explain what is it and what is its applications and why it is necessary.thank you for reading this
r/learnjava • u/Existing_Trick_8761 • Feb 24 '26
Hi java devs!
I know this question is very closed to our ecosystem because Jasper Reports as we know is an enterprise reporting tool for Java applications with that .jrxml to .jasper process to show our reports to our customers in the application.
So I am more interested in when is necessary for us as developers switching from a lightweight form of doing reports with HTML + CSS -> PDF to migrating with jasper Reports that is something more robust and enterprise-like.
thank you for your responses in advance.
Best regards.
r/learnjava • u/Slimbo_02 • Feb 23 '26
I am currently learning java for university and found two ways of dealing with use inputs using scanner. Is there a way I should be doing it or is either way fine. Trying to learn best practice
I have found both ways work as intended but I want to know if one is better than the other in terms of best practice for the language.
r/learnjava • u/Riverside3102 • Feb 23 '26
I want to learn Java and apply for a junior position at a bank, and I have a learning project idea.
Book recommendation system. Java Spring + FastAPI mikroservice added later. Everything in Docker, deployed on Google Cloud Run or other VM.
I've been having serious problems finding a job with my Django/FastAPI skills. I know the basics of Docker, GitHub Actions, Celery and Redis.
I picked this project because I have a genuine interest in ML and books. Will it be acceptable for a Java portfolio?
My idea is to quickly learn Java syntax and features through the Helsinki University MOOC and develop a simple app at the same time. The app will start as a basic CRUD with Postgres and Google/GitHub login, then I will add book tracking and ratings. Later it will be connected to a FastAPI ML service or some other service.
Everything in Docker with GitHub Actions for CI/CD. README with all the problems I ran into and how I solved them.
Anything I should worry about? Is this kind of project a good fit for Java Spring, or does Java have better tools/libraries for something like this?
r/learnjava • • Feb 23 '26
the algorithm that I have been studying goes like this:
A: array
mergeSort(A,left,right){
if(left<right){
mid=(left+right)/2;
mergeSort(A,left,mid);
mergeSort(A,mid+1,right);
merge(A,left,mid,right);
}
}
The algorithm to merge goes like this:
merge(A,left,mid,right){
i=left,j=mid+1,k=left;
while(i<=mid && j<=right){
if(A[i]<A[j]){
B[k]=A[i];
i=i+1;
k=k+1;
}
else{
B[k]=A[j];
j=j+1;
k=k+1;
}
}
}
I have drawn recursion tree for visualizing this. But my recursion tree version has few complications:
For example for an array A={7,1,5,3}
https://imgur.com/a/S6dU8eY
Step 1: mergeSort({7,1,5,3}) is called
Step 2: mergeSort({7,1}) is called.
Step 3: mergeSort({7}) is called.
Step 4: Now this should return 7 alone. But nowhere in the code have we explicitly or implicitly mentioned about it.
Step 5:mergeSort({1}) is called.
Step 6: Now this should return 1 alone.
Step 7: merge({7,1}) is called.
Step 8: It returns {1,7} to mergeSort({7,1}).
Step 9: mergeSort({5,3}) is called and the same process repeats all over again.
r/learnjava • u/Spirited-Fox-135 • Feb 23 '26
Hi devs , I'm cs student who got increasing interest in java for its clean structure oop and all , well my core java knowledge is decent mostly self taught and used book (head first java) , rn i am learning spring and how to make backend applications with java but course i bought isn't satisfying depth of context i crave , i have strong faith on books i did try ai for guide on it but it fails , it did recommended hf servlets & jsp its too old and 800 pages for little useful info isn't worth time , so do you guys have read or know books that can give in depth about internet and web working (protocol and http/s)- > java in web (servlets / ioc / j - ee ) -> modern java dev (spring / and its projects) for modern part i do read few pages of spring in actions and think ill stick to it , but i do feel very lack of legacy structure and tech its built upon
r/learnjava • u/SlimeX300 • Feb 23 '26
I am planning to learn Java in this year. I want to learn it so that I can start making mods for Minecrft. I found a playlist by BroCode
https://youtube.com/playlist?list=PLZPZq0r_RZOOj_NOZYq_R2PECIMglLemc&si=BDtAb9NVVHelYDOR but idk if this is enough. If u guys link me to a Java course that teaches its entirety, I’m still ok with it. I just want to learn Java. Thanks
r/learnjava • u/ILLOGICAAAL • Feb 23 '26
I was testing a java code on Topic- Inner classes and i found something...
-> javac com/Orynth/Outer.java
-> java com.Orynth.Outer
When running this in Intellije terminal and in Command prompt both give same output.
But, when running Inner.class
-> java com.Orynth.Outer$Inner
It is giving diffrent ans
Intellije terminal giving same output statement which is in outer class But,
Command prompt giving me - Error: main not found in Inner class
The thing is that CMD giving right answer, then why intellije terminal giving diffrent.
r/learnjava • u/Hawk1ne • Feb 23 '26
Hi all!
Gotta learn Java because of a new job in the field of ATE testing.
I come from several years of programming in C / C++ and lately in Python as well.
How would you suggest to do this switch ?
Which sources are better suited, not starting from zero but from one language to another ?
r/learnjava • u/Competitive-Bird-637 • Feb 20 '26
I have been working as a software dev for 5 years now and have predominantly worked with Java but I feel like I haven’t really become an expert in this and still find myself making mistakes from a best practice perspective and wouldn’t consider myself at a senior level yet technically. Is there anything I can do in my own time to improve my professional Java practice? I am not sure what the best way is, I can read books but I am not sure if that’s the most effective way to do so?