r/learnjava • u/BeefyWaft • Mar 13 '26
Temurin JDK - No releases found
What's going on with Temurin JDK? It appears to have disappeared. No releases found.
Website glitch or has it been abandoned?
r/learnjava • u/BeefyWaft • Mar 13 '26
What's going on with Temurin JDK? It appears to have disappeared. No releases found.
Website glitch or has it been abandoned?
r/learnjava • • Mar 13 '26
interface Collection<E> {
...
public boolean containsAll(Collection<?> c);
...
}What does above code do? There is no type parameter, so whatever supplied can't be used in method, i'm confused.
Below code does exactly what above does but we can actually use T inside method.
interface Collection<E> {
...
public T boolean containsAll(Collection<T> c);
...
}r/learnjava • u/FanIll5532 • Mar 12 '26
I've been studying for over a year so I can get OCA (1Z0-808) certified. Im ready now but it seems to be impossible to buy an exam at the Oracle website from The Netherlands. All the pages link to each other/go in circles or eventually land on a dead page. I tried to mail them and I tried to open a ticket with customer support. They don't react to that. I called them and all they can tell me is that I can open a ticket (like I already did).
So my question is: is there anyone OCA-certified living in The Netherlands that could tell me how to buy/do an exam from the Oracle website?
r/learnjava • u/Proof-Suggestion5926 • Mar 12 '26
r/learnjava • u/United-Extension-917 • Mar 08 '26
Hey guys, sorry if this question has been asked multiple times. I have a good understanding of core java, java 8, collections, generics and servlets, JDBC and jsp. Is this enough for staring to learn Spring and Springboot or is this even helpful for it. Should I start learning it and if not what topics should I learn and practice first.
Thanking you in advance for your replies.
r/learnjava • u/Substantial-Bee-8298 • Mar 08 '26
JAVA
r/learnjava • u/vivek_r01 • Mar 08 '26
Hey everyone I'm learning Sb but I'm not able to understand after bean and all. Maybe my OOPs are weak. Anyone plz share the best resource for learning it.
r/learnjava • u/kharamdau • Mar 07 '26
I've been seeing something repeatedly in Spring Boot services.
Integration tests run against H2 or mocked dependencies. Everything is green locally and in CI.
Then the first real deployment runs Flyway migrations against PostgreSQL and suddenly things break — constraint differences, SQL dialect issues, index behavior, etc.
The tests passed, but they were validating a different system.
Lately I've been leaning toward running integration tests against real infrastructure using Testcontainers instead of H2. The feedback loop is slightly slower but the confidence is much higher.
Example pattern I've been using:
- Start a PostgreSQL container via Testcontainers
- Run real Flyway migrations
- Validate schema with Hibernate
- Share the container across test classes via a base integration test
The container starts once and the Spring context is reused, so the performance cost is actually manageable.
Curious how other teams approach this.
Are people still using H2 for integration tests, or has Testcontainers become the default?
r/learnjava • u/wickedagileone • Mar 07 '26
In college learning Java at the moment, but I’m struggling at applying concepts. Anyone have recommendations for getting more “natural” in coding? Definitely have a weakness in methods, which snowballs into other areas.
r/learnjava • u/Even_Ad3271 • Mar 06 '26
Hi, I’ve had this question in the last days.
Can I start directly with spring boot or first must I have a solid foundations of servlets, jakarta, jsp and all that stuff oriented to web?
I already know OOP and JDBC, I’ve been making some projects with that.
Additionally I’d like you to share some resources or videos to learn either spring boot or java web (servlets, jakarta, etc.)
r/learnjava • u/Intrepid_Sand4216 • Mar 06 '26
I am a frontend engineer having 9 years of experience working with React, typescript and other related technologies. I have also experience with Java on commercial level for 1 year at the start of my career. So last time I worked with Java was a loong time ago.
Which resources/courses would you suggest to refresh and update my knowledge starting with Java and possibly with other related technologies(Spring, Maven etc).
A lot of courses/tutorials are directed towards people with no experience, are there are any courses which might be helpful for such switchers as me?
r/learnjava • • Mar 06 '26
I download the JavaFX sdk, added the JARs to Eclipse, and set the VM arguments with the module path pointing to the lib folder, but when I run my program, I still get a module not recognized error. Has anyone run into this before?
r/learnjava • u/zerquetchonator • Mar 05 '26
I want to install javafx and the sdk, because a program I found asks for it. Everywhere I go, I am either expected to be a programmer developing an app or, be able to find non-existent software.
To install these java kits, Oracle has put out a ton of info all revolving around the Installer. Whether it's an *exe or *.msi there is a boatload of great info.
However, my friends, the only downloads that are available are simple *.zip files that contain no executable.
So I just unpacked them in the /java directory, added environment variables so Win11 can find them, made a batch file that looks like this:
C:\path\to\jdk\bin\java.exe \
--module-path C:\path\to\javafx-sdk\lib \
--add-modules=javafx.controls \
-jar C:\path\to\THEAPP.jarand that's about where I hit a wall.
What am I doing wrong?? I'm not a developer, just a guy trying to get an app to run.
Help me before I go nutz!
r/learnjava • u/AcanthisittaEmpty985 • Mar 05 '26
I want to use a Java local thread variable for thread-unsafe objects, like SimpleDateFormat or google's com.googlecode.protobuf.format.JsonFormat.
I do this in order to avoid creating new expensive classes every time the method is used or to avoid a synchronized method.
private static final ThreadLocal<JsonFormat> JSON_FORMAT_THREAD_LOCAL = ThreadLocal.withInitial(JsonFormat::new);
Then, the variable will be used in a formating output method like this:
public String outputData(MyDataClass myData) {
return JSON_FORMAT_THREAD_LOCAL.get().printToString(myData);
}
In my case I use it into a Jetty Server thread pool, but I don't have access to it or way to remove the threadlocal variable when the thread is done.
The method will be called every time a request is served by each thread, one thread per request at a time.
The application doesn't reload or recharge jars; when we need to stop it or update the server we simply stop the process, maybe update the jar , and restart a new process
Is it safe to use a ThreadLocal like this ?
r/learnjava • u/No-Elk-6757 • Mar 05 '26
Hi everyone!
I built a backend project to practice event-driven architecture using Java and Spring Boot.
The application simulates a payment system where order creation publishes an event that is processed asynchronously through RabbitMQ.
Tech stack:
- Java 21
- Spring Boot
- PostgreSQL
- RabbitMQ
- Docker
- Swagger
- Maven
Features:
- Create orders
- Update order status
- Event publishing with RabbitMQ
- Asynchronous consumer
- Global exception handling
- REST API documentation with Swagger
Repository:
https://github.com/marconi-prog/fintech-payment-api
Feedback is very welcome!
r/learnjava • u/yellowwater5000 • Mar 04 '26
I just did a sample practice problem from school and did really bad on exception handling. I understand the concept of exceptions but I don't understand how the throw keyword works, as well as how the catch blocks work... if someone could explain it to me like i'm 5
r/learnjava • u/Defiant_Vanilla_4080 • Mar 04 '26
public static void main(String[] args) {
for (int i = 1; i <= 4; i++) {
for (int k = 1; k <= 4; k++) {
if (i > k) {
continue;
}
if (i < k) {
break;
}
System.out.println(i * k);
}
}
}
}I justed the debugger and it showed that I is still 1 but after hitting the second time syso, it increases to 2
Imgur link
r/learnjava • u/GuaranteeAlarmed4308 • Mar 03 '26
Lately, I’ve been feeling a bit anxious about the rise of AI. There’s so much talk about automation and AI replacing developers that I’m starting to worry about the future of backend development.
Is backend development at real risk in the coming years? If not, how do you see it evolving?
What skills should I focus on now to stay relevant and future-proof my career? Should I double down on core backend skills (Java, system design, databases), or start moving toward AI/ML, cloud, DevOps, or something else?
Would really appreciate advice from experienced developers who’ve seen tech shifts before.
r/learnjava • u/ashut0sh_27 • Mar 02 '26
so I am familiar with the concepts of dbms but finding it hard to implement in program like all that owning and inverse side then json loop. Watched some yt videos but it didn't cleared the confusion. can someone explain or share some resources for the same
r/learnjava • u/Substantial-Bee-8298 • Mar 02 '26
Because Servlet helps in spring if any bugs come in that ? what to do getting stuck and confused ?
r/learnjava • u/MrDV6 • Mar 01 '26
r/learnjava • u/KaoticKai • Mar 01 '26
Hello! I have an assignment for my CSC 110 class, and we are learning strings right now.
I have an activity asking me to gather input for first name, middle name, and last name. But I also need to produce a First name, last name output if no middle name is given
my idea was to have one string collect the whole name, and then assign the first,middle, and last name strings with the characters between white space.
I am not sure what function to use?
r/learnjava • u/No_Public_4853 • Mar 01 '26
Olá!
Estou no primeiro semestre de engenharia de software e quero focar no desenvolvimento de backend com Java. Meu inglês é avançado, tenho tempo para estudar, mas estou começando do 0 na programação. Meu objetivo é conseguir um estágio; quanto antes, melhor.
Busco por cursos estruturados (de preferencia, gratuitos ou que não sejam tão caros), com certificado, que auxilie na construção de habilidades básicas e seja bom para o aprendizado.
Vejo que MOOC.ic foi muito citado, é ainda um dos melhores para comical? Tem outros que podem recomendar?
Desde já, agradeço imensamente.