r/learnjava • • Sep 05 '21

hear a lot about how mooc is really good to learn java. How exactly do you use it.

4 Upvotes

I'm learning programming for the very first time and thought i'd try out mooc (helsinki) . But i'm not quite sure how you use it


r/learnjava • • Aug 06 '21

Doubts regarding the return statements

3 Upvotes

can someone explain me why this method returns a Boolean without me actually using a "return boolean" statement in there?

public boolean doesArrayContainThisValue(int searchValue) {

boolean valueInArray = false;

for(int i = 0; i < arraySize; i++){

if(theArray[i]==searchValue){

valueInArray = true;

}


r/learnjava • • Jul 05 '22

Does my company own my code if I make a program on my own time, at home, without using work resources?

3 Upvotes

My current employer (not a software-related industry), has several places in our employee handbook that says any intellectual property developed while employed here is owned by the company; pretty standard. I'm trying to learn Java and making my own coding projects, including ones that would actually be useful to me and others at my workplace (simple ones for now, like a work related calculator). I plan to use these projects as a portfolio for future employers. Since my code is work related, if I use it at work, can the company say they own it, since the IP was developed while I worked there? It was made on my own, at home, on my own time, they didn't commission the work, nor did they have any say in its development. I want to leave it open source on my github for anyone to use, and I don't want my employer to sue me for using code they think they own. I also plan on making bigger projects as I improve my skills. I don't want to develop another project later for myself or some other company and have my current employer find out and sue me for stealing "their" IP. Especially since I want to give them the working program for free, I just want to retain the rights to use it myself. Anyone know how I could proceed, or know somewhere to seek legal advice? Cheers

Edit: I'm in California (US)


r/learnjava • • Sep 22 '23

Is it better to start with Angular or Spring Boot first?

3 Upvotes

Hey, everyone! I want to become a full-stack developer, focusing on Angular and Spring Boot. I'm wondering if it's better to start with Java Spring or TypeScript Angular?


r/learnjava • • Oct 30 '16

What the HELL is a modulo?

0 Upvotes

I have a test tomorrow, in the test one of the questions will be to seperate a number from a 3 digit number, say I have 641, I need to know how to print out 6,4 and 1 seperately.

What the hell do I do ? The teacher is so bad I couldn't understand a word she said and neither did my class, we already complained about her but this isn't the issue, the issue is that I have no easy answers on the internet for what the modulo is.

Why does doing (n/100)%10; print out the hundred digit ? I have no idea how this works, please go easy on me.


r/learnjava • • Oct 21 '26

Best way to learn programming in java.

0 Upvotes

I was thinking to learn programming and I'm not sure what the best way is, can I take help of AI too or is that not good?... It would be fun if I could learn to make mods for a game I'm playing much.


r/learnjava • • Dec 11 '25

I need major help in Intro to Java

0 Upvotes

My final is coming up on Saturday, and I’m in a bad spot. I made it through the semester, but it was a struggle. I still find it hard for me to flat out write code. Please if you people out here can even help me enough to where I can get like a 65 on the final that would be amazing.

I feel like usually, I can understand what something is asking for, and also understand what code does, but I just struggle so hard when actually writing it myself.

My professor did provide a practice final that has (assuming) a similar question to what half of the final would be, if anyone willing to help wants me to send that.

Thank you in advance.


r/learnjava • • Aug 07 '26

Let's learn Java + DSA together!

3 Upvotes

I am thinking of using the Kunal Kushwaha playlist on YouTube. I know it isn't complete and a few advanced topics are missing. We can pick a different teacher for that I guess but as per my research it's definitely the best playlist for Java. Timing or experience or gender doesn't matter. Just need a partner!


r/learnjava • • Jun 22 '25

New java coder

2 Upvotes

I've been a Java scripter for about 4 days now.
I've learnt interfaces, classes, functions, OOP, and other stuff like making packages.
What should I focus on to become a game developer in Java? I mostly want to create 3D games.


r/learnjava • • Aug 08 '18

Making code make decisions ...

2 Upvotes

Control flow is central to making decisions in Java. Mastering control flow makes it possible to make decisions with code ...after all that’s why we write code:

making decisions with Java


r/learnjava • • Feb 13 '24

Does Java versión matter?

2 Upvotes

Hello everyone, I have a beginner's question: does the version of Java I chose to learn matter?

A bit of context: I'm from Chile, and I've been studying computer science for a few years now. In my university, I learned Java 8, Python, and other languages, and because of that, I dismissed Java and went for Python, C#, or TypeScript. But now that I'm on vacation, I've taken another look at Java, and I must admit I really like it. Not only that, but in my country, they pay well for Java programmers, although they require a lot of experience. The downside is that I heard they use an old tech-stack here. For example, some systems use Java 8, others Java 11, and I even heard of one using Java 1.5 - I think. Anyway, I've been focusing on learning Java 17 or Java 21, and I wanted to know if that's a bad decision since, would it affect anything?

As extra context, my focus is to specialize in backend development, either in Java, Node, Go, or C#. But for now, my favorite is Java with Spring Boot, and that's why I'm somewhat confused about whether the versions would pose a problem if I just focus on learning one.


r/learnjava • • Mar 16 '23

Why does every program has to contain a class in Java but in Python you can just write anything without defining one although they're both OOP languages?

2 Upvotes

I'm not a Python programmer but I'm still at the start so excuse my question.

I don't get why can we just write Python programs right away and you can then run them? With no need for any class definition although both languages, as long as I know, are OOP languages.

Sorry if I should post this in another Python-related subreddit. Let me know and I'll delete this.


r/learnjava • • Sep 13 '24

Trying to learn Java properly..

0 Upvotes

I am currently trying to learn Java fully and need some easy to understand resources and websites not that time taking but good resources


r/learnjava • • Dec 21 '16

Not sure what to do now thay im done mooc part two for java.

2 Upvotes

So I finished the part two of the Java mooc and I want to know if there are any other good courses available for me to work with. I quite frankly found the mooc really boring after a while. I was considering android but I'm unsure if that's too far ahead of me. Books, courses, ideas, let me know please


r/learnjava • • Nov 14 '18

IM DESPERATE. I DONT KNOW WHAT IS WRONG WITH MY CODE.

2 Upvotes

It's my first time using multiple methods in a class and I dont have the grasp of how it works yet. Ive been rattling my brains out why the values are printing 0 instead of the increments that theyre spposed to have in the loop. Here's my code:

public static void main(String[] args)

throws FileNotFoundException{

Scanner f = new Scanner(new File("Readme.txt"));

String the="the", to="to", be="be";

int theCount=0, toCount=0, beCount=0;

while (f.hasNext()){

String words = f.next();

words = words.toLowerCase();

words = words.replace("?"," ").replace("!"," ").replace(","," ").replace("."," ").replace(";"," ").replace(":"," ").replace("'"," ").replace("\""," ");

theCount = frequency(words, the);

toCount = frequency(words, to);

beCount = frequency(words, be);

}

System.out.println(theCount);

System.out.println(toCount);

System.out.println(beCount);

}

public static int frequency(String word, String x){

int result=0, frequency=0;

if (word.contains(x)){

result = frequency++;

}

return result;

}

}

EDIT: it worked when i put the ++ before frequency (ie. ++frequency)


r/learnjava • • Mar 14 '25

Java Crash Courses Please

2 Upvotes

I have an interview in 3 days, it was a bit spontaneous I learned Java 6 years ago at a local computer education institute, but haven't touched it since then I have used python and c++(for electronics) since then Please suggest some crash course


r/learnjava • • Apr 28 '24

Is learning Java from book still relevant in 2024 ?

6 Upvotes

As this is fast pace evolving field, can we rely on books like Head First Java which published way back to learn Java concepts ? Or those will be mostly outdated.


r/learnjava • • Mar 03 '25

Which platform is the best for learning java and free?

9 Upvotes

Hey guys, I am 13 years of age and I want to prepare for my computer science next year, and in my curriculum, they teach Java as well as Python. Do you guys have any recommendations?


r/learnjava • • Jan 18 '26

We kinda don't need JPA anymore for personal projects.

0 Upvotes

I used to have a CQRS style in my projects. Complex reads with JdbcTemplate, everything else with JPA.

But now AI can write all queries. The boilerplate part is taken care off.

So... I kinda don't need JPA anymore. Plain SQL is far more flexible and transparent. And AI can just write the query in seconds.

Thoughts?


r/learnjava • • Aug 28 '24

How's VS for java? Or should I just use intelliJ

5 Upvotes

I've gotten so use to VS for JavaScript and python so definitely would have to learn intelliJ. Is it still superior?


r/learnjava • • Mar 01 '24

is Java used in the Web world?

0 Upvotes

is java used in the web world? I would like to know more about Java scopes.


r/learnjava • • Dec 31 '22

Learning

5 Upvotes

Just learned the difference between println and print 🤣🤣🤣 this is fun lol


r/learnjava • • Feb 05 '26

please help me understand the logic behind java's syntax

8 Upvotes

Hello

I'm used to program in Python, and now I'm trying to get reacquainted with Java. The syntax, however, seems quite confusing and constraining, at least when compared to the freedom one has in Python.

Of course, Java wouldn't be one of the most widespread languages if those constraints and syntax didn't have a good reason for existing, which is why I'm writing this post. So far I'm able to perform basic tasks, and I'm getting used to java's quirks, but I feel like I could improve faster if I could understand the reasoning behind those limitations.

Thanks a lot for your help :)

PS: by limitations I mean, for example, having to declare the type of a variable, not being able to change a variable type at will, the way the brackets work, how you can't have loops outside of methods, etc.

PS2: I should probably clarify that this isn't meant as disrespect towards the language: clearly it works and it works well, otherwise it wouldn't be as widespread. I'm merely trying to wrap my head around the differences.


r/learnjava • • Jun 26 '21

I have to learn Java :(

18 Upvotes

I got hired into a big company, in the process of contract I said I don't code in java but in Go, I got hired although I'm going to work with Python/Go I'll have to train in some advanced stuff (2 months) using Java, which book/course can teach me java fast without more deep than needed, I'm just using it while training and don't plan to use it in the future.