r/javahelp • • Jul 31 '19

Final Exam for my 1st year Mechanical Engineering intro to Java course this Friday (mostly on Object - Oriented Programming)

19 Upvotes

New programmer here. My exam is 2 days from now, and I'm kind of worried because I am having some trouble with OOP. I know the basics, such as: attributes, constructors, and mutators. I know that there is going to be a class with the objects, and a corresponding tester, for each. However, I am having some difficulty memorizing the syntax for all the OOP requirements. Thankfully the final exam is 80 % Multiple Choice and 20 % short answer on paper. So do any of you guys have any tips for me, or any last minute OOP videos to watch?


r/javahelp • • Jun 12 '19

Are there developers who are truly interested in good architecture, quality and security? And if so, which frameworks are they using?

19 Upvotes

The title is the question


r/javahelp • • Jun 05 '19

If I need to instantiate an object but its class will depend on an user defined action, how would I declare it on my code?

19 Upvotes

So, I'm very new to Java and OOP. I'm practicing on a simple project that tries to emulate a Medieval warfare emulator (text based, super simple).

I have a 'Weapon' class with some basic attributes (attack, block, speed, etc). My idea is to have multiple subclasses per each weapon type (Sword, Pike, Spear, etc.).

A player can buy any weapon (of any class) from the weaponsmith. The Weaponsmith so far shows a list of weapons and the user indicates which weapon he wants to buy by inputting a number. Then, by selecting the corresponding weapon using the user input as the index of the list, I can get the weapon that the user wants to buy.

This is where I'm having trouble.

I should now make a new instance of the weapon. However, the constructor to use will depend on the class from the weapon chosen by the user. How would I go around doing this? I don't want to check the class of the chosen option since that isn't very compliant with OOP's guidelines (I understand that via polymorphism I should be able to do so, but so far I couldn't make it).

Thanks a lot for your help!


r/javahelp • • May 26 '19

Back-end web development path

19 Upvotes

Hi all,

I am interested in web development so will look at getting into Spring. I am learning Swing now in my Programming II class. Next is Data Structures and Algorithms. When should I jump into Swing and what are the pre-requisites? I have learned OOP, Collections API, and a bit of Swing. What is the next logical step? JDBC, Servlets & JSP as an intro, or just jump into Spring right away?


r/javahelp • • Jan 02 '18

Can anyone suggest a good tutorial to learn Java EE and Netbeans?

19 Upvotes

I'm finding a good tutorial (on Youtube or a good pdf) that can explain to me how to configure Netbeans to do my firs JavaEE application. I'm tryng with the code example of my programming teacher but nothing works!


r/javahelp • • Jan 02 '16

How to think in OOP?

19 Upvotes

Hi all! When I write some app in Java, I have code in 2-3 classes. When I see how more expirienced programmers write similar apps, I see an hierachy of types, using of interfaces, abstract classes, all classes are small and understandable. I seem to understand all of these conceptions when I see someone's code but when I write myself I can't create something similar.


r/javahelp • • Sep 26 '15

Looking for beginner/intermediate Java programmers to work and learn in a group!

19 Upvotes

Hello! Hope you all are having a wonderful day, I am here on behalf of /r/JavaTeam to recruit some beginning java programmers. We are looking for a small group of committed people who want to learn more about Java. We will obtain this by having group projects and everybody will contribute to said projects. GitHub is what we will most likely be using so we can all look at the code and contribute to our goal. This is what we feel is the best way to learn java, as it gets to be pretty confusing especially working/learning alone.

Now, we are also looking for intermediate or more advanced Java programmers, for the fact that we will need some guidance when making programs. You will act as a teacher, if you will, and help when we make mistakes, give advice to our code and how we can make it better, and also can contribute the projects.

/r/JavaTeam is a private subreddit so we can maintain a smaller, focused group. The reason we are using our own subreddit is so we can post ideas for future/current projects, have "assignments" of sorts where we will all have simple things to do on the side such as making methods, practicing arrays, etc so we can keep our skills sharp. This is also the place where we will highlight the goal of our project, and determine how we will reach it. Then after that we will get down to the nitty gritty and do some coding!

I regard myself as a beginner Java programmer, and so is my partner who I created this idea with. I am wanting to learn just as much as you so lets do it together! If you are interested then please, comment down below or feel free to shoot me a message. Thanks I hope to see some of you over in /r/JavaTeam!

EDIT: Ok everybody so here's the deal, there is like, a shit load of you that want to join and I've already accepted more than a "small group" worth of people. BUT I can almost 100% assure you that half of those people will either forget about the project entirely, or just not want to. So there will be spots open, if I message you back you are welcome to join. This project is going to take a while to get started since we need all of our members to have github, to contribute some ideas, and to make a final decision on where to start. Our first program is definitely going to be a super easy one, since this is primarily for the beginners. Anyways, be looking out for my message and I'll keep you guys updated. Thanks for all the interest!


r/javahelp • • Mar 11 '15

I'll help you build your Java game!

19 Upvotes

Redditors,

Recently I posted a question in /r/gamedev, asking if any users where interested in a Java game development tutorial series on YouTube.

To my surprise, the thread received +450 or so up-votes and my mailing list topped about 500 people.

I'm 2 episodes into the first project: A TRON clone.

I wanted to extend an offer to you, and say if anyone is stuck on a game dev related issue - feel free to stop by my channel and I'll debug your software for you!

If your interested in the project: http://www.devfactor.io

Otherwise if you just want the videos/debugging sub to this channel: http://www.youtube.com/devfactor

Thanks, and I hope this is helpful ;)


r/javahelp • • Aug 16 '26

i want to start java spring boot from 0

18 Upvotes

best resources to learn java from the very basics till java spring boot advanced any book or any yt video would help! please recommend one


r/javahelp • • Feb 04 '26

Looking for a Java coding partner to learn and practice daily

18 Upvotes

Hey, I’m a 3rd-year CS student currently learning Java through Telusko tutorials and official docs. I’m looking for a coding partner who’s also learning Java and wants to practice daily to stay consistent. We can solve problems together, discuss concepts, and keep each other accountable. If you’re serious about improving and coding regularly, feel free to DM.


r/javahelp • • Jul 27 '25

How can I level up as Junior Java Dev? Looking for advice from experienced devs.

18 Upvotes

Hi everyone,

I'm currently working as a Junior Java Developer. I enjoy what I do, but I want to close the gap between where I am and being a confident, skilled developer.

What key areas should I focus on to improve faster? What helped you the most in your early career?

I'm looking for practical tips, resources, or learning strategies that can help me grow more efficiently.

Thanks in advance!


r/javahelp • • Dec 29 '24

Did I Mess Up My Java Interview?

18 Upvotes

Hey everyone, I had an interview 5 days ago for a junior Java developer position. The company has a 3-step process: a technical test on HackerRank, an HR interview, and a final technical interview. I made it all the way to the last stage, which was online with two interviewers.

Here’s how it went:

First Part: They asked me about my CV and my Spring Boot internship. I explained everything well and felt confident. Then, they moved on to Java questions, and I answered most of them correctly—even overexplaining at times. At this point, I was feeling pretty optimistic.

OOP Problem: This is where I stumbled. They gave me a problem to solve live, but I froze. I rushed through reading the prompt, misunderstood parts of it, and suggested a less-than-optimal solution. They gently pointed it out and tried to help me with analogies and simple questions to guide me. I could tell they were rooting for me, but I wasn’t vocalizing my thoughts at all, which I know interviewers value.

When I finally realized the right solution, instead of expanding or explaining my thought process, I just said, “Let’s implement a [solution],” and didn’t elaborate much. They agreed that was the correct approach, but I feel like I didn’t explain myself enough.

Coding Part: When it was time to code, I managed to write the solution correctly and finished just in time. One of them commented, “Interesting way of solving it,” about a part of my code, which felt like a good sign.

At the end, they asked if I had any questions. I asked for feedback and admitted I struggled with reading the prompt carefully and staying calm. I explained that the stress of the interview was getting to me and that I’d normally solve such problems more easily outside of that pressure.

Now I can’t stop overthinking. Do you think writing the correct solution was enough to recover? Or did I mess up too much by freezing, not vocalizing my thoughts, and not expanding on my solution? I don’t want them to think I’m incompetent.

Results come out in 10 days, and I’m stressing hard. Would love to hear your thoughts.


r/javahelp • • Apr 16 '24

What is the Best Lightweight IDE for JAVA?

18 Upvotes

I am currently learning JAVA and I have a mid-range laptop, I need a lightweight IDE to solve problems and to work on. I have used IntelliJ but it is heavy, is there any lightweight best IDE?


r/javahelp • • Feb 12 '24

Is java fx worth learning?

18 Upvotes

Hey there, I'm an aspiring Java developer currently learning spring boot, as of now I have good command of OOPs and practice DSA in java.

I just wanted to know if learning to create GUI with java is worth it or not, because I've looked at it and doesn't really seem nice to code. . . . .

Thanks for the advice everyone.


r/javahelp • • Sep 25 '23

Advice for Computer Science Degree Recipient at 65 Years Old Please

18 Upvotes

Hi experts. Can anyone offer any advice for a recent CS grad at 65 years old? I would really love to be a Software Developer. I know Java and I am familiar with Python and C#. My dream would be to work with data and Machine Learning. Any suggestions? Thanks!


r/javahelp • • Oct 19 '22

I don't understand the difference between pass-by-value and pass-by-reference

18 Upvotes

Hey!

I'm reading OCP Java SE 17 Dev Study Guide and I've come across the pass-by-value topic. When it comes to primitive variables everything makes sense - we're making a copy of the variable value, and we're modifying the copy, so the original stays intact.

And there is also an example of passing the StringBuilder object as a parameter and executing the .append() method on it so that the original object is affected as well because we're making a copy of the reference and acting on the actual object.

I have a hard time imagining what pass-by-reference actually looks like (even on a high level of abstraction). What are we passing if not a copy of a reference?


r/javahelp • • May 01 '22

Best exercises to include in CV for the first job as Java Dev

18 Upvotes

I'm finishing my first year at school.
We've learn mostly about Java and SQL and done a lot of exercises mixing both of them like a program who insert students and tutors to an school database, or a program to maintain the stock of a car dealership, etc...
This summer I want to do some personal project that could be good to show in a first interview for my first java job.
Tried to search for those "basic or must java personal project" for beginners but nothing shows.
What could you recommend me?
I need to start pushing my Git account to stand out from the rest of your classmates.


r/javahelp • • Jan 03 '22

Unsolved Priority of "&&" and "||" operators in a while loop?

18 Upvotes

Edit: Nevermind I have lost my sanity. You can just use parentheses inside the parentheses to logically separate things. Don't read this post or risk a seizure.

So I'm running a while loop. Let's call the three conditions it's checking bool1, bool2 and bool3.

If 1's true, the loop shall loop. If 1's false the loop shall not loop.

On top of that if one of 2 or 3 is true, the loop shall loop. If both are false the loop shall not loop. The thing that makes it complicated is that inside the loop I have other loops that check for 2 and 3 and flip them on or off.

The way I have it written rn is:
while(bool1 == true && bool2 == true || bool3 == true){}

My question is, does the && operator basically split the equation in two like ((1) && (2 || 3)) or will the "||" operator override bool1's condition if let's say 3 is true. If so how do I write the condition more clearly, some sort of bracket to logically separate things?

Sorry if it sounds like I'm having a stroke, I'm just in too deep in this program and if I lay down the raw code it's gonna be even more confusing. My brain juice has ran out at this point, my nuclear reactor has reached its tipping point akin to chernobyl and the basics have slipped my mind. If you can make sense of this, thank you.


r/javahelp • • Nov 19 '21

Unsolved Is there a good Spring microservices tutorial that is recently made?

18 Upvotes

I'm trying to learn microservices using Spring on java but every good tutorial, whether on YouTube or an article, has something that has been deprecated and not supported anymore like CircuitBreaker or Netflix Zuul. So is there a recently made toturial that can help me learn Spring microservices?


r/javahelp • • Sep 01 '21

Unsolved What’s the difference between using ArrayList mylist = new ArrayList() vs List mylist = new ArrayList()?

18 Upvotes

I saw that on an interview question and was confused about the different and when I should use one or the other


r/javahelp • • Jun 11 '21

Unsolved I'm trying to make a Bowling Score Calculator, but it keeps adding 14 to the total score and skipping over the frames.

18 Upvotes

I might be completely missing what is happening or I have over complicated things, but I'm stuck with this. It's strangely adding 14 to the final score while skipping over every other frame. I don't know what I'm doing wrong.

https://pastebin.com/vA7x9pTP


r/javahelp • • Jun 01 '21

Why would i bother making an Interface if i only have one Class using that Interface?

18 Upvotes

Is the only good reason that i "might" need it it the future? or is it other good reasons to start with that?

The class i am talking about is a Grid class. And i am making a grid based game.


r/javahelp • • May 15 '21

Solved Hard time understanding abstraction and encapsulation with relation to how it hides details to a user/consumer.

18 Upvotes

Emphasis on user & consumer, because that's the source of mystery to me. I don't understand what people mean by users and consumers, when they say that "you can hide data from a user" or "users need see only the abstract methods in an interface hiding implementation details" when following encapsulation and abstraction principles, respectively. What's the user here — a hacker, a regular client, both?

For example, I know a project can be released and packaged as a JAR file. Upon inspection, the Zip file contains class files and meta data. A user can then run the JAR if they have JRE, or use WinRAR to inspect the stuff in the JAR file. But they never really see any of the *.java files, or code that makes up the application. Like why would encapsulation or abstraction be necessary for security reasons, if they can't see the code in the first place?

I think I am interpreting this the complete wrong way. Like what do developers even give to consumers in a production setting? How does encapsulation and abstraction be useful for consumers if they can see certain types of stuff? And what is the scope of stuff they see / given? Are they given only certain java files? JAR?


Edit: I really need a concrete example involving a seller and clientele, if anything! Also, my post might come off as rant-like. I'm sorry, but I have been trying to figure out my lapses in understanding, and it has been overwhelmingly fruitless. Last time I felt this way, was when I had to understand the watch order of the Fate series.


r/javahelp • • Jan 16 '21

If a class implements an interface, does this class ALWAYS have an "is a" relation with the interface? If not always, when it doesn't?

18 Upvotes

If a class implements an interface, does this class ALWAYS have an "is a" relation with the interface? If not always, when it doesn't?