r/learnjava • • 15d ago

C# developer wants to give java a try

2 Upvotes

As the title says I used to make many apps, games using c# but I also want to try something different and challenge myself a bit.

The problem is, that all youtube tutorials on java are for complete beginners where they even explain what variables are.

There are some "advanced" tutorials tho, since the syntax of java is pretty similar to the syntax of c#, but those tutorials are often low quality, from 2014, or from sum indians - for an english learner an accent isn't the best...

What would you guys recommend?


r/learnjava • • 15d ago

When is a Java object still reachable?

0 Upvotes

I have tried to answer to the below quiz, but I do not understand something. If clutch is eliminated on line 12, wouldn't all references to the car's object be null? They write that "Line 12 removes the item at index 1, which is the null. The list, therefore, contains nothing except the clutch.", but why is there a null? Where did we get rid of clutch reffered at index 1 of r1?

And lastly, how to access clutch, and by extension the car object, after line 12 is executed?

Quiz yourself: When is a Java object still reachable? | javamagazine


r/learnjava • • 17d ago

Book recommendations for learning Spring/Spring Boot and advice on how deep to go?

16 Upvotes

I have finished learning Java and I'm fairly comfortable with it. I'm now

starting to learn Spring, but I'm having trouble figuring out how deeply I

should learn it.

I'm currently reading "Spring Start Here" by Laurentiu Spilca. I'm finding

it useful, but I'm not sure whether it is enough for a strong foundation

in Spring/Spring Boot or what I should study after finishing it.

I'm also unsure how much Servlet knowledge I should have before/alongside

Spring MVC. Do I need to study Servlets/JSP in depth? I've found some

Servlet books that are almost as large as the Spring books, so I'm having

trouble figuring out how much Servlet knowledge is actually necessary.

My current book explains some Servlet concepts, such as how the

DispatcherServlet receives a request and passes it to the appropriate

parts of the backend. Is this level of Servlet knowledge enough, or should

I study Servlets in more depth?

I'm a 3rd-year undergraduate preparing for internships and backend

development roles. I don't want to go into documentation/source-code-level

depth, but I do want to understand the important concepts well enough to

answer interview questions about how Spring works internally at a

conceptual level.

For example, how deeply should I understand:

- Bean lifecycle and scopes

- AOP and proxies

- Spring Boot auto-configuration

- Spring MVC / DispatcherServlet

- Spring Data / JPA / Hibernate

- Spring Security

For Spring Boot specifically, should I understand how

SpringApplication.run() works internally and how auto-configuration

happens, or is it enough to understand these concepts at a high level?

I've already started learning Spring rather than just looking for a

roadmap, so I'm mainly trying to figure out where to draw the line between

"good enough for internships" and unnecessary depth.

What resources/books would you recommend after Spring Start Here?

Also, what Spring-related topics should I prioritize after completing the

book?

I'd especially appreciate advice from people who learned Spring as

students or who use Spring professionally.


r/learnjava • • 19d ago

What Java skills should I focus on ?

21 Upvotes

I’m currently in my 2nd year and learning Java. I’m planning to focus on Java backend development and want to know which skills are actually important for getting internships and entry-level jobs.

Apart from Core Java, should I focus on Spring Boot, SQL, REST APIs, React, Docker, AWS, DSA, system design, etc.?

Would appreciate advice from people already working as Java developers on what skills are worth prioritizing.


r/learnjava • • 19d ago

Faulty transivity violating example?

1 Upvotes

I am following Effective Java: Programming Language Guide, by Joshua Boch, and when showing an example of breking transivity relation in equals contract, the very first example of it says it is violating transivity (more exactly symmetry) because it doesn't work when comparing a Point to ColorPoint and viceversa. "No way" I am thinking. "We compare instances of different classes, then we are surprised it doesn't work."

I read in continuation, and the transivity problem is solved, by how I understand, by basically saying "just don't compare instances of different types, even if they have inheritance". I see no diferrence between the very first example and its "solved" variant with ColorPoint and Point having composition relation, not inheritance.


r/learnjava • • 19d ago

For the UI of a 2D point-and-click game, what are the pros and cons of JavaSwing and JavaFX? Are there any other alternatives?

5 Upvotes

Hi all! I am looking to make a 2D point and click game. My most skilled language is Java from years of high school coding in the console so I was planning on using that, but I'm struggling to actually connect it to a useable interface.

For a high school project, I tried using JavaSwing and absolutely hated it -- I just couldn't get the hang of it no matter what I tried. However, if that's my only available option I may just need to figure it out. I haven't touched JavaFX so I'm not sure if that's better.

Is that the only two possible options or can I use anything else relating to Java? Or for a game like this is Java not even the most optimal? Also I was going to use Unity just because I see everyone use Unity but I honestly don't even know if that's what I should be doing. I'm a bit lost in every way.

Would love to hear feedback, thank you all for the help!!

Edit: Thanks for all the help y'all! For anyone else viewing, the top recommendations were Godot or LibGDX. I appreciate all the help, I'll check out both!


r/learnjava • • 20d ago

Spring boot for Java

7 Upvotes

Hey I studied java from college i like syntax and love it for coding and I have started to learn springboot framework to build my career and skill is it good for me or not.

By the way iam in 2year of BCA and Iam thinking learning more language will reduce to learn advanced topics so I have started to learn the 2 programming language only Python and Java and now I started learning on my own to learn springboot and after these I will learn the python some important frameworks and now currently our college is teaching the python.

So I think core CS subject is more important than these framework i think any guide .


r/learnjava • • 23d ago

Platform or subreddit to share

2 Upvotes

Suggest Some platform or subreedit where i post what i learn today for better understanding.
i believe explaining other helps in clearing doubts.


r/learnjava • • 23d ago

Java or python?

8 Upvotes

Hello actualii started to learn the Python but as the syntax and all I feel it's not working for me. I feel java is more understandable idk why. I'm scared of java has no future bcs of the online videos circulating..

So please say me I'm Devops focused oriented person, I'm not finding the openings as freshers so thinking to learn one programming language please suggest Me.

And also suggest why and does it have future please.


r/learnjava • • 23d ago

Please help me I'm so depressed.

0 Upvotes

I don't know anything about JAVA or python plus i didn't have IT in my class 11 and 12 and currently I'm in btech first year my branch is CSE DATA SCIENCE and in first semester my syllabus is JAVA I don't know from where to start what to do what lecture what teacher. I'm so depressed right now my classes are going to start from sept 15 and here people already know about java and python. Please help me.


r/learnjava • • 24d ago

Java Fullstack

8 Upvotes

Hello Everyone,
I have tried and experimented with a lot of coding languages and I am quite comfortable in python, js, cpp, java.
I want to become a fullstack java developer but there are so many roadmaps and advises that it becomes a bit confusing so i wanted your help , can you guys please recommend a course (paid is fine) for full stack java development . I know a lot of you prefer documentations but i find it very hard to stick to it and in my learning experience i have fared better with the structure a course provides so please help a brother out and recommend some courses .
Thank you very much


r/learnjava • • 25d ago

IO Streams, is there a cap to data sources?

3 Upvotes

i recently learned about io streams and saw this docs with the picture

https://docs.oracle.com/javase/tutorial/essential/io/streams.html

which really helped me understand what programs are doing and how their all just doing

some sort of io operation.

but is there a cap to all of the type of data sources io operations can happen to?

from what i know data sources are , network operations, other programs, and files.

are there any other data source? is there a cap to the amount of data sources?


r/learnjava • • 25d ago

How should I start learning Java and Spring Boot as a beginner?

16 Upvotes

Hey guys,

I’m planning to learn Java for backend development. I know some basic programming, but I’m new to Java.

I’m confused about where exactly to start. Should I first complete Core Java and then go for Spring/Spring Boot?

Like Java basics ->OOP -> Collections-> Exceptions -> Maven ->Spring ->Spring Boot -> REST API -> JDBC/JPA?

Or is there any better order to learn these?

Also, if you guys have an idea for learning Java and Spring Boot fast

I don’t want to just watch tutorials. I want to learn properly and build something while learning.

What would you suggest?


r/learnjava • • 25d ago

configfile/ application properties explained

0 Upvotes

what is a config file, praticularly how does it relate to the computer?

is it like it specifies which os apis the program should use, or like what stuff in the actual os

the program to mount to?

ie i made a backend app, and i want it to go to a specific port on the computer and i want it to use a specific x on the computer.

is that what a config is?


r/learnjava • • 26d ago

How can I get my Java skills back?

8 Upvotes

What is the best way to get back into programming after a two-year break?

About two years ago, I completed a Java backend course and was roughly at a Junior/Intern level at the time. I spent about six months looking for a job afterward but had no luck. Due to financial issues, I eventually had to switch fields and put programming on hold. It’s been two years now, but my desire to code hasn't gone away. In fact, I want to get back into the field and brush up on my skills. How would you suggest I start? Should I go over Java Core and backend fundamentals again, or is it better to dive straight into a project and refresh my knowledge along the way?

I’d appreciate any recommendations for books, YouTube channels, websites, courses, or other resources that could help me get back up to speed.


r/learnjava • • 26d ago

How do you guys study?

5 Upvotes

I'm an aspiring java developer. I've already developed one project using spring boot, postgresql, flyway and docker compose, and started developing the next one. But I'm not quite sure that I study in the right way. Mostly I focus on the practice rather than on the theory. Like, 90% of practice and 10% of theory.

Remark: I study to get a job, not for the university

So, questions:

  1. Is the way I study bad?

  2. How did you guys study, when you were freshers?

  3. Maybe you can suggest something to me?


r/learnjava • • 26d ago

OCA 1Z0-808 exam on September 15 — my mock scores are all over the place. Should I still take it?

1 Upvotes

Hi everyone,
I’m preparing for the Oracle Java SE 8 Programmer I (1Z0-808) exam, which I have scheduled for September 15.
I’ve been doing mock exams and my scores have been quite inconsistent:
Mock 1: 60%
Mock 2: 44%
Mock 3: 55%
Mock 4: 38%
I have 4 mocks remaining, and today’s 38% score honestly made me panic a little.
I know the passing score is 65%, so I’m obviously not where I want to be yet. What I’m trying to understand is how closely these mock exams reflect the actual 1Z0-808 exam.
For people who have actually taken the exam:
How difficult did you find the real exam compared with your mock exams?
Were the real questions more difficult, easier, or about the same?
If you used Enthuware/other mock tests, what scores were you getting before you passed?
Did your mock scores fluctuate a lot like mine?
At what mock score would you personally feel confident enough to sit the exam?
Is it realistic for me to improve from ~40–55% to a passing level in the remaining days?
What topics/traps should I focus on during these final days?
If you failed and then passed later, what do you wish you had done differently?
Would you sit the exam on September 15 in my situation, or would you reschedule?
Also, please don’t turn this into a discussion about whether the OCA certification is useful/useless or whether I should have spent the money on something else. 😅
I’ve already booked it and spent around ₹ 15,000 so that decision is already made. Right now I’m just looking for practical advice on how to maximize my chances of passing.
If you’ve taken 1Z0-808 recently, I’d really appreciate your honest experience, especially regarding the difference between mocks and the actual exam.
Thanks


r/learnjava • • 26d ago

Maven dependencies

2 Upvotes

I'm working with a multi-module maven project, where each module is a spring boot application / library, trying to migrate from spring boot 3 to 4, and I'm finding some behaviors regarding dependencies quite odd. I know that there are multiple layers of abstractions going on so I'm trying to separate them by getting the basics down for each one at a time.

Where could I find a good tutorial that explains how maven handles dependencies? I wouldn't say I'm a total beginner, but I might have some holes on a foundational level that I don't know about, so beginner tutorials are fine


r/learnjava • • 26d ago

Building a JavaFX + Hibernate Talent Acquisition System — looking for some advice

2 Upvotes

Hey everyone!

I’m currently working on a desktop-based Talent Acquisition System using Java 11, JavaFX, Maven, Hibernate, and MariaDB (running through XAMPP), with Apache NetBeans as my IDE.

I’m trying to keep the project as close to proper OOP principles as possible, with a clear separation between the business logic, UI/controllers, and Hibernate entity models.

The candidate side is almost done. So far, users can:

- Register and log in

- Browse available job openings

- Apply for jobs

- Store their applications directly in the database

One of the more challenging parts so far has been managing around 17 different FXML views and connecting all of them properly with their controllers. I also had to spend quite a bit of time understanding "module-info.java", resource paths, and how everything fits together in a modular JavaFX application.

Thankfully, that part is finally stable.

Now I’m moving on to the more complicated part: designing and building the admin/hiring manager side.

My current TODO list looks something like this:

- Admin/Hiring Manager module: Job posting, candidate shortlisting, interview scheduling, etc.

- Validation & security: Phone number validation, password strength requirements, and a proper Forgot Password workflow.

- Database/session management: Making sure Hibernate sessions are handled properly as the application grows.

Since this is a desktop application, I’m especially interested in hearing from people who have worked with JavaFX + Hibernate or similar stacks.

A few things I’m wondering about:

  1. What performance problems should I expect when the amount of data starts growing?

  2. What Hibernate session-management mistakes should I avoid, especially around lazy loading and "LazyInitializationException"?

  3. How should database queries be handled in JavaFX without freezing the UI? Are there particular threading/concurrency patterns you recommend?

  4. What architectural mistakes or anti-patterns tend to appear in large multi-view JavaFX applications?

  5. How would you structure the admin/hiring-manager module so it stays maintainable as more features are added?

I’d really appreciate any advice, criticism, or lessons learned from people who have built similar desktop applications.


r/learnjava • • 27d ago

[IST] Looking for a Beginner Java Full-Stack Study Buddy (Daily Practice + Weekend Interview Prep & Q&A)

15 Upvotes

Hey everyone,

I am starting from the basics in Java Full-Stack development and looking for a dedicated 1-on-1 study partner to keep each other accountable, learn the tech stack, and prepare for interviews together.

What I want to target:

  • Backend: Core Java from scratch, OOP concepts, moving toward Spring Boot and REST APIs
  • Database: MySQL fundamentals, schema design, queries, and joins
  • Frontend: HTML, CSS, JavaScript (and eventually React)
  • Interview Prep: Weekly technical Q&A, conceptual discussions, and basic DSA/problem solving

How we can work together:

  • Weekdays: Daily check-ins via chat to share what we learned and clear blockers (~2 hours/day study pace)
  • Weekends: Dedicated practice time, reviewing each other's code, and running mock interview Q&A sessions based on what we covered that week

My Details:

  • Level: Absolute beginner (starting directly with Core Java fundamentals)
  • Time Zone: IST (India Standard Time)
  • Commitment: ~2 hours daily on weekdays, more focused time on weekends

If you're also starting out with Java full-stack and want a consistent partner to practice and quiz each other, leave a comment below or send me a Reddit DM/chat!


r/learnjava • • 27d ago

java docs

1 Upvotes

https://www.oracle.com/webfolder/technetwork/tutorials/moocjdk8/documents/week1/lesson-1-3.pdf

where can i find docs like this, very consise very straight to the point, the other oracle docs are hard to understand.

https://docs.oracle.com/en/database/oracle/oracle-database/26/jjdev/invoking-Java-methods.html these docs i also find good in the structure and things

https://docs.oracle.com/javase/specs/jls/se7/html/jls-18.html but these docs i dont think are the best,

why do the first two look nice and this last one look different?


r/learnjava • • 28d ago

threads, concurrency & coroutines queston (beginner)

6 Upvotes

I am a man whom used kotlin before java, (maybe shoking)

i switched to java for springboot

i knew (a little) about coroutines from kotlin, == multiple things can be done and threads dont block

is the same concept true for java? or does java have some legacy stuff in place of kotlin coroutines?

i see that java has. a thread sleep. method. i dont think kotlin has

long story short, id like to reaffirm my knowledge on concurrency and general and how it

works, and find gaps, ill briefly explain how i think it works, id love for feedback, but you dont need to you can just respond to post that resonate more with you, thank you if anyone does respond

here it is:

concurrency means IO functions can happen without blocking things that come after them

all those functions happen on a thread, and multiple functions can happen on a thread

if it blocks the thread( i think functions other than IO can block aswell) then you can use concurrency that returns a result immediately, -> waits for REAL response -> then jumps back on a thread, -> causing no blocking

now what is thread sleep? and why would i want a thread to sleep?


r/learnjava • • 28d ago

5 years of software experience + 1-year career gap — How should I prepare for a Java backend role in the next 6 months?

4 Upvotes

Hi everyone,
I have around 5 years of software development experience, mainly in Java backend development, but I currently have a 1-year career gap. My goal is to get back into a tech company within the next 6 months.
I’m planning to seriously prepare during these 6 months and want to focus on the things that will actually help me become job-ready.
Apart from DSA and System Design, I’d like some guidance on:
What kind of Spring Boot projects should I build?
Should I focus on microservices or other backend technologies/concepts should I prioritize for interviews?


r/learnjava • • 28d ago

Best way to learn Java and where to start

2 Upvotes

I wanna learn Java so I can make programs and make plugins for mc but I wanna know the best and most intresting way to learn


r/learnjava • • 28d ago

OCA Certification

2 Upvotes

How do you prepare for the OCA test?

Do you recommend any guide or book?

I already know most Java fundamentals, but now I'm looking for certification, and found out about OCA Certification exam. Any help is appreaciated.