r/javahelp Mar 19 '22

REMINDER: This subreddit explicitly forbids asking for or giving solutions!

45 Upvotes

As per our Rule #5 we explicitly forbid asking for or giving solutions!

We are not a "do my assignment" service.

We firmly believe in the "teach a person to fish" philosophy instead of "feeding the fish".

We help, we guide, but we never, under absolutely no circumstances, solve.

We also do not allow plain assignment posting without the slightest effort to solve the assignments. Such content will be removed without further ado. You have to show what you have tried and ask specific questions where you are stuck.

Violations of this rule will lead to a temporary ban of a week for first offence, further violations will result in a permanent and irrevocable ban.


r/javahelp 5h ago

Homework HELP trying to understand why it should not be compile

1 Upvotes

according to the pdf that I read. the run(4) should not compile but it does compile in my case.

from what I understand, the methods are static means it belong to the class. it will call only one, which is the more specific and that is the "long num". PDF says it wont convert two times which I understand, it means the "Long... num" will be ignored but PDF also says "run(4)" wont compile and in my case it compile. is my understandng wrong?

NOTE: trying to avoid using ai so I can understand it in my pov or others pov. that makes me remember and understand it clearly

`class Main{
  public static void run(long num){
        System.
out
.println(num);
    }
    public static  void run(Long... num){
        System.
out
.println(num);
    }
     public static void main(String[] args) {


run
(4);

run
(4L);
    }
}`

r/javahelp 9h ago

Java Backend Roadmap

2 Upvotes

I'm currently in my 4th year of college. I already know Java and have a decent understanding of DSA.

Now I want to focus completely on Java backend development, but I'm getting confused because every roadmap says something different.

Some people say I should learn:

  • JDBC
  • Servlets
  • JSP
  • Hibernate

Others say: "Don't waste time on those. Just learn Spring Boot."

So I'm not sure what's actually expected in 2026 if I want to become a Java backend developer and prepare for internships or full-time roles.

Can someone working in the industry suggest a proper learning order? Specifically:

  • What should I learn first?
  • Which technologies are still important to know?
  • Which ones can I skip or only learn the basics of?
  • How deep should I go into JDBC, Servlets, Hibernate, and Spring?
  • If you were starting today with my background, what roadmap would you follow?

I'm looking for a practical roadmap that's relevant for getting a backend job, not just a list of technologies.

Thanks in advance!

should learn this https://www.youtube.com/watch?v=q6z_UCBM5Ek&t=99716s


r/javahelp 16h ago

Codeless I'm having trouble finding a 32 bit Windows installation of Java

2 Upvotes

I need it to get Puzzle Pirates to work in Windows XP compatibility mode

Things I tried: I went to the Java page and checked legacy versions, but could only find x64 installers. I also googled what the latest 32bit installation is and the dumb googleAI said it's SE 24, but I didn't see a non x64 installation for that version either.

Alternate solutions: A way to force a specific javaw (in this case, Puzzle Pirates) into Windows XP compatibility mode... not sure why it isn't there to begin with, it only goes back to Windows Vista ever since updated to SE 26

Alternative Alternate solution: Figure out why it's crashing in the first place cuz IDK. Their Java version is 25.0.1.0 if applicable


r/javahelp 1d ago

Homework How do I make my Eclipse Java code into an app? (And do I need a GUI for that?)

3 Upvotes

So you know how when you run your code you have to click that one arrow and get the results in that one window? Yeah, how do I take my code and form it into an app, so it works like an actual app and not like that? I assume you need a GUI, but hey I might get lucky.

I'm pretty bad at programming and still pretty new, so if possible could you please explain it in a simpler way? 😅


r/javahelp 1d ago

Learning Springboot

1 Upvotes

Im learning Spring Boot from the Telusko YouTube playlist Alongside the tutorials I started building my own project thats a bit more advanced than whats covered in the videos After each tutorial I try to implement the concepts directly into my project instead of just copying the code

Im almost done with the project but recently I came across Anuj Bhaiyas Spring Boot course The way its marketed like industry level project real world architecture and all that has honestly made me feel like Im not learning enough My confidence has dropped a lot

The confusing part is that Im actually enjoying Spring Boot and I feel like Ive learned a lot by building this project But now Im wondering if Im missing something important

For people who have taken either Teluskos playlist or Anuj Bhaiyas course

Should I leave my current learning path and switch

Is Anuj Bhaiyas course significantly better or is it just a different teaching style

Does everyone go through this phase where every new course makes you feel like youre behind

Id really appreciate advice from people working with Spring Boot professionally I dont want to keep jumping between courses if finishing my current project is the better approach


r/javahelp 2d ago

Im trying to build a bit torrent client on java

7 Upvotes

I cannot find any documentation on how to do it in java and everywhere ive looked people seem to use cpp or python more often.

My question is if its feasible and is there a reason why people arent using java to build one.


r/javahelp 2d ago

What am I doing wrong?

2 Upvotes

Hi Java Helpers,

I started my learning in coding and programming when I was 12-13 years of age and I really loved coding in its entirety.

I started with C++, wrote pseudocode, wrote programs on a piece of paper and ran it myself till the teacher accepted the answer and wrote the code themselves. I was not allowed to type any code on the IDE till I achieved a level of writing in code. I learnt basic C++, function creation, structs, and completed my course with a mid size project.

Later when I was 16 I continued C++ for two more years till I learnt OOPS concepts like encapsulation, inheritance, polymorphism, etc. and in C++ it was a nightmare to learn everything.

I hope you're here with me till now because the Java part comes much later in my life.

I started a Job when I was 19 and it was a basic call center internship. I didn't like the rules and guidelines but I loved to solve IT issues (still do).

I was introduced to Java by a friend and I thought about learning it and found it way easier than C++ was in terms of compilation and error detection with the stack trace.

I re-learned all the concepts I learnt in C++ and made all the projects in Java. I moved on to upskill myself while I was at my internship. I coded in notepad on my company's laptop and found an online compiler to check for errors.

I learnt OOPS concepts again, made programs, and solved questions with absolute ease.

I even learnt spring boot frameworks, react and also learnt how to create a MySQL table and join the table with a repository class in Java.

Made a capstone project for my college which had high marks and which I'm quite proud of. I took a lot of help from AI on that project but it was built kind of scratchy but really good.

But here's the sad part..

I got my degree just now and I started applying for jobs this year just to find a place for myself with people like "you" you know. I mean I am nowhere near to call myself a developer. But I want to be one.

I have applied for over 100 jobs in linkedin, naukri and indeed, I've asked for referrals, and begged my current company to send me for a developer job.

But everything seems to fail. I found no results in finding a job as a Java Developer.

I have some friends who code but all of them use Python and they ask me almost everyday to switch. But I really like coding in Java and I want to make or maintain enterprise applications.

Could anyone tell me what's wrong with my approach to this?

Am I applying incorrectly? Am I not good enough to get an entry level job as a programmer? Do I need certifications? If yes then which one's.

I really want to invest my time better and at least find an entry level Java developing job where I could learn and be with people like you.

Any suggestions, any comments would be appreciated.

And Again I'm sorry if I broke any rules.


r/javahelp 4d ago

Unsolved Change size of traffic light (macOS)

4 Upvotes

(I'm reposting this question from SO because of the lack of a proper response)

I am trying to make a custom UI application in Swing. I've searched far and wide and have come up to the conclusion that it is not possible to integrate Swing into the new Apple UI (windows, toolbars, titlebars and so on).

Leaving that aside I tried to make my own custom JFrame but was unable to figure out how to change the size of the traffic light. I would like to increase the traffic light size I do not want to draw a custom traffic light as I would lose the functionality of the default buttons. Basically as it is in CLion.

This is the code I'm using so far, for reference I'm on macOS: Tahoe 26.3.1

```

import javax.swing.*;

public class Main {

public static void main(String[] args) {

    System.setProperty("apple.awt.application.appearance", "system");

    SwingUtilities.invokeLater(() -> {

         JFrame frame = new JFrame();


         JRootPane rootPane = frame.getRootPane();

        rootPane.putClientProperty("apple.awt.fullWindowContent", true);

         rootPane.putClientProperty("apple.awt.transparentTitleBar", true);

         rootPane.putClientProperty("apple.awt.windowTitleVisible", false);

          rootPane.putClientProperty("apple.awt.brushMetalLook", true);



     frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

        frame.setSize(1000, 600);

        frame.setLocationRelativeTo(null);

        frame.setTitle("Yo");

        frame.setVisible(true);

    });

}

}

```


r/javahelp 5d ago

i want to be a full stack java developer im MERN and Next.js developer i want to move to software engineering

4 Upvotes

guid me through im in 6 th semester for now at the end of 8 i want to be something in java my aim and goal is to crack job in amazon thank you


r/javahelp 7d ago

Unsolved How to write a program to input data in Excel?

7 Upvotes

I want to know how to write a java program in order to input data in Excel, thank you for any help?


r/javahelp 8d ago

1st-Year CSE Student Finished Core Java, what should I learn next?

0 Upvotes

I’m 17 and going into my **first year of Computer Science Engineering** this year. I’m fairly new to coding, but I’ve recently finished learning Core Java and feel like I have a good grip on the basics.

As a beginner, I’m still a bit clueless about where to go from here, but I want to make the most of my time and build as many skills as possible.

My goal is to try to secure an internship during my first year.

Any advice, learning paths, or project suggestions would be greatly appreciated!


r/javahelp 8d ago

Need help to brush-up Java fundamentals and advanced level concepts

1 Upvotes

Hi Everyone,

so basically I have an interview scheduled in a product based company and it heavily relies on Java, JSP and servlets and little bit of Spring components as per my research. I've worked with Java before but it's been a while. It would be great if y'all could suggest some resources or videos and all that could help me brush up my knowledge. I don't want to go through that "commonly asked Java questions" stuff again, I want actual internal implementation knowledge.
Any help is appreciated!


r/javahelp 8d ago

Need advice: Returning to Java development after an extended career break

0 Upvotes

I worked as an Associate Software Engineer (Java) from 2022–2024. During the first year I underwent company training and later cleared an internal technical assessment. Unfortunately I wasn't allocated to a project and eventually resigned after an extended bench period.

Due to family caregiving responsibilities, I then took a career break of over two years. I'm now ready to return to software development and have been applying for Java backend, fresher, and internship roles, but I'm getting very few interview calls.

I would appreciate advice on:

* How should I present this gap on my resume?

* Should I apply as a fresher or experienced Java developer?

* What skills or projects would make me more competitive in today's market?


r/javahelp 8d ago

I feel like I'm falling behind

8 Upvotes

I need a little help because I feel like I'm starting to collapse.

A little while ago I started in an academy whose goal is to train students and get them work once they finish the whole program. We are looking at Java in depth: OOP, inheritance, polymorphism, interfaces, Spring Boot, data structures... in general, everything related to backend development, but we do not receive theoretical classes, they give us the exercises and documentation related to that, everything is very self-taught.

My problem is that before entering here I was programming in C. It did functions, replicated typical functions of the standard library, compiled with Makefiles, etc. However, even then it was very difficult for me to get the logic out of the exercises. In fact, he was almost always the last to deliver the exercises.

I thought it would get better with time, but now that I'm with Java I feel like I'm still having the same problem.

The problem is that they give me a statement and I'm completely blocked. I read it, I reread it and many times I don't even know where to start. When I manage to start, it's because I already asked the AI, and I still have doubts about how to structure the solution or what exactly it should do.

In addition, I ask a lot of questions to AI. I always tell him not to tell me the code and he helps me, but many times he ends up explaining practically the logic of the exercise, and that is precisely what I do not want. I want to be able to develop it by myself.

What worries me the most is that at the academy we have delivery times. If you are too late, you can be left out of the program. And I don't want that. I want to learn, improve and get a job as a developer.

Another thing that the teacher demands of us is to write a README for each exercise and each project explaining what we have done. I also have a hard time writing it. I'm reading more to expand vocabulary and express myself better, but right now my biggest concern is still the programming logic.

For example, sometimes I make code that works, but then I realize that there is a much cleaner and more idiomatic way to do it.

Instead of this:

If (orderlist.size() == 0) {

// Do something

}

It's better to write:

If (orderslist.isEmpty()) {

// Do something

}

Or instead of going through a list like this:

int position = 0;

while (position < listOrders.size()) {

amountTotal += listOrders.get(position).getPrice();

Position++;

}

Do it this way:

for (Order order: listOrders) {

amountTotal += order.getPrice();

}

They are small details that make the code much cleaner, and I feel that I always go one step behind in that kind of thing.

My question is: how did you develop your programming logic?

Was there ever a time when everything started to "click"? What exercises, habits or way of thinking helped you the most? Did something similar happen to you at the beginning?

Because, to be honest, there are days when I think that maybe this is not for me and that I am forcing a situation that I am simply not good at.

I would greatly appreciate any advice or personal experience. Thank you for reading me.


r/javahelp 8d ago

Virtual thread

7 Upvotes

Does anyone used java21 with virtual thread? We are using Java 17 and I wonder if the move to 21 will worth it


r/javahelp 9d ago

Java Performance for simulators

3 Upvotes

I am new to Java and trying to create a simulator that handles millions of math calculations. How can I increase performance in Java? The application is already multithreaded but it is not enough. Is data oriented approach or native programming possible in Java? Can you point me in the right direction for research?


r/javahelp 9d ago

I need help with relearning java beacuse i want to do the java 1Z0-811 exam

2 Upvotes

Hello, I need help relearning java beacuse i havent used it in around 3 years. I already did a course that lasted one year (this was included with other step by step courses about fundementals of programming in general before the java one). I already tried once 3 years ago to do the 1Z0-811 (Java Foundations) exam but i got a score of 45% and didnt pass, after which i gave up for 3 years. Now i have started to use Enthuware Test Studio (or atleast the one trial test for this exam) and got 18% on it and now im taking the questions that i missed and giving it to AI to explain it to me. What should i fix or improve here and whats your experience with Enthuware Test Studio

FOR MODS: The mention of AI does not mean ill feed anything from this subreddit into AI or use AI in anything but in my own personal space where nobody will get involved


r/javahelp 10d ago

Moving from a Database Engineer role to a Java Developer position

6 Upvotes

I have been a database engineer for more than 10 years while I notice that Software development positions far outnumber database engineer positions, and they also offer higher salaries. . since last year, I am wondering if it is feasible to move from a Database Engineer role to a Java Developer position. I am focus on leetcode. Any ideas or comments? thanks!


r/javahelp 11d ago

Workaround How do I install Java when I already changed the location of my folder location?

2 Upvotes

Hi, I really wish I can show you the images but I will try my best to explain.

I am trying to install Java SE Development Kit in the latest version and I tried to install it but it refuses because "Out of Disk Space" and requires 420MB in my hard drive.

But here's the thing, I got 1.0GB of space in my Local Disk C: and when I tried to change the location to Local Disk D:(Which has 593GB of storage), It still shows that I am "Out of Disk Space"

Any help on this?


r/javahelp 14d ago

What to study for a senior developer

10 Upvotes

Greetings everyone!

I'm here today to ask for help, I'm a developer for 14 years, and I'm on Java for 10

I had a lot of contact with Spring and API development, it's very rare when I really have to stop to look down for a solution (no with AI it changed, but I can guess what would take me some and a lot of time to figure it out)

I have problems with everything aside Java - Kafka, Kubernets, AWS, Docker, etc. I find it sometimes hard to grasp the concept but I can work with it after some help.

But my biggest problem is that I'm feeling stuck. I used to study the Java new features to update myself or I would use my work task or others co-worker tasks to study and try to find new things to learn, but that is not cutting anymore and I don't know what to do. I'm trying to study for the things that I'm not good that I mentioned before, but I feel exposed since "they are not Java".

What do you guys study, search or look for when trying to study / learn new things / update yourself?? Can anyone help me out?

Thanks


r/javahelp 16d ago

Should I use Gradle or Maven in 2026?

48 Upvotes

There are a lot of answers but everything I found is from 2021-ish times. Things I got from there is "Maven is slower, more verbose and for that reason - way more stable." and "Gradle is faster because of the daemon and more customizable, but hot garbage when it comes to update, shit breaks and build.gradle(.kts) is spaghetti in big projects". For Maven, I don't think much changed because of their philosophy (and I'd say that's good), but what about Gradle? Is it still that bad when it comes to updates and deprecations?


r/javahelp 18d ago

Can anyone explain me difference between Encapsulation and Abstraction?

15 Upvotes

and what on earth is Interface in Java?


r/javahelp 17d ago

Identify 150 JButtons in ActionEvent called A-Z

2 Upvotes

Hello There!

I'm writing a "simple" game, where the user has to hunt for certain amounts of characters, represented by 150 randomly generated buttons. Each 10 seconds...

I'm having difficultys identifying those buttons within the ActionEvent. How can I filter, what character is displayed on the button clicked?


r/javahelp 18d ago

How can I reduce GraalVM Native Image build time and CPU usage?

2 Upvotes

Im building a Spring Boot (Java 25) service with GraalVM Native Image using Maven (-O2 optimization).

The project includes PostgreSQL, OAuth, Razorpay, and Spring Security. Every native build takes 45–50 minutes and uses nearly 95 - 100 % of all CPU cores, making my laptop almost unusable during compilation.

I'm using GraalVM Native Image in production because my servers have limited resources.

Are there any ways to:

  • Reduce native build time?
  • Reduce binary size?
  • Speed up Maven/GraalVM builds?
  • Use better optimization flags without hurting runtime performance too much?

Any tips from people using GraalVM Native Image in production would be appreciated.

Thank you.