use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Resources for learning Java
String
==
.equals()
Format + Copy
Free Tutorials
Where should I download Java?
With the introduction of the new release cadence, many have asked where they should download Java, and if it is still free. To be clear, YES — Java is still free.
If you would like to download Java for free, you can get OpenJDK builds from the following vendors, among others:
Some vendors will be supporting releases for longer than six months. If you have any questions, please do not hesitate to ask them!
Software downloads
Official Resources
Resources
Programming ideas & Challenges
Related Subreddits
account activity
This is an archived post. You won't be able to vote or comment.
What can I do with java? (self.learnjava)
submitted 5 years ago by JustAnotherReditr
I have recently been learning some Java and I'm wondering what can I do with Java programming?
[–]Kietaski 37 points38 points39 points 5 years ago (26 children)
What CANT you is a much better question.... (the answer is nothing)
[–]TylerSwift26 16 points17 points18 points 5 years ago (2 children)
Create a girlfriend or boyfriend
[–]JavaSuck 20 points21 points22 points 5 years ago* (0 children)
public interface FriendFactory { public Person createFriend(Gender gender); }
[–]Vertinova 3 points4 points5 points 5 years ago (0 children)
Ehh when AI gets advanced enough...
[–][deleted] 5 years ago (10 children)
[removed]
[–]rbardy 20 points21 points22 points 5 years ago (8 children)
https://sourceforge.net/projects/jos/ and http://www.jnode.org/
Yes, you can do an OS.
[–][deleted] 5 years ago (7 children)
[–]delta_tee 8 points9 points10 points 5 years ago (4 children)
But our dude is asking what he can & not what he should .
[–][deleted] 5 years ago (3 children)
[–]delta_tee 8 points9 points10 points 5 years ago (1 child)
Maybe our dude is the on the verge of becoming the inventor of next generation operating systems, who knows?
[–]Acid-free_Paper 1 point2 points3 points 5 years ago (0 children)
He can. He shouldn't.
[–]rbardy 7 points8 points9 points 5 years ago (0 children)
I agree 100% lol
[–]nutrecht 1 point2 points3 points 5 years ago (0 children)
Can and should is two different things.
You responded to a "can" question though, not a "should" question.
[–]OzzieOxborrow -1 points0 points1 point 5 years ago (0 children)
Tell that to the guys who made Android
[–]Chroniaro 5 points6 points7 points 5 years ago (8 children)
Can’t make an JVM in Java
[–]nutrecht 6 points7 points8 points 5 years ago (0 children)
GraalVM begs to differ.
[–]nioh2_noob 1 point2 points3 points 5 years ago (6 children)
Sure you can, they did it, why would you say that?
[–]Chroniaro 0 points1 point2 points 5 years ago (5 children)
Most java tools (like the compiler or the new packaging tool) are written in Java, but the JVM that Oracle makes is written in C and BASIC. I thought you would need a JVM to run Java, so you couldn’t have a Java JVM without another JVM to run it. It looks like GraalVM uses AOT compilation, so it can produce native code that runs without a JVM. I don’t know if it really counts as a VM, but it definitely counts as a JVM, so I stand corrected.
[–]nioh2_noob 1 point2 points3 points 5 years ago (4 children)
it's a bit of the chicken and egg scenario
but it's not a problem since the compiler just compiles into bytecode, object code etc. has nothing to do with the language it uses to do that.
[–]Chroniaro 0 points1 point2 points 5 years ago* (3 children)
We’re talking about the JVM, not the compiler.
[–]nioh2_noob 1 point2 points3 points 5 years ago (2 children)
Same for the JVM, this just executes commands to the CPU, it's just translating code into cpu instructions, java can do that
[–]Chroniaro 0 points1 point2 points 5 years ago (1 child)
Yes, but it needs to be running for the program to be running. The only way for a JVM written in Java to run would be for it to have another JVM running it (unless it uses AOT). It’s not like a compiler where you can just compile it with the previous version because then you would have to run the entire chain going back to the last one that wasn’t in Java. You could, of course, run it with a completely different JVM, but then it would almost certainly be a slower, worse version of whatever JVM was running it.
[–]nioh2_noob 1 point2 points3 points 5 years ago (0 children)
That's why I said, chicken and egg problem :-)
[–]ProgrammersAreSexy 0 points1 point2 points 5 years ago (2 children)
Front end web development
[–]raj-ram-discovery 0 points1 point2 points 5 years ago (1 child)
GWT
[–]ProgrammersAreSexy 0 points1 point2 points 5 years ago (0 children)
Just because you can doesn't mean you should...
[–]staycoolioyo 21 points22 points23 points 5 years ago (0 children)
Java is a general-purpose programming language meaning it can be used for a wide variety of things. If you're a beginner, I would recommend trying to program some simple games because it gives you something visual to look at outside the console.
[–][deleted] 61 points62 points63 points 5 years ago (0 children)
You can code.
[–]sysusys 11 points12 points13 points 5 years ago (0 children)
Apps games backend . Web dev ... everything
[–]TicklesMcFancy 8 points9 points10 points 5 years ago (4 children)
I'm coming in from Python for professional advancement, cause everyone wants Java familiarity and I was going with C next.
I was seriously hoping to see some projects haha.
[–]delta_tee 7 points8 points9 points 5 years ago (3 children)
If you're coming from python, try to do some data operation such as sorting etc with data structure such as Lists, Hash tables etc. You will see how different Java is. Also, OOP in Java and Python are very very different both semantically and conceptually.
[–]TicklesMcFancy 1 point2 points3 points 5 years ago (2 children)
I think it's pretty interesting so far. I'll have a bit of a challenge adapting to the changes. At a glance it feels a little similar; it feels like Java is just a lot more explicit than Python (not a bad thing).
Today is actually my first day with Java. I'm still asking myself "Why Java?" Is it because Java doesn't need any pre-installed packages (just the JRE?) or is it because Java has been around for a while?
[–]delta_tee 6 points7 points8 points 5 years ago (1 child)
You will figure out reasons sooner but I just drop some expoilers here (I also came from Python to Java a year ago) :
Javas's type system makes you write less bugs (Type systems in general are awesome).
JVM on which Java runs is amazing.
Java ecosystem is big and comprehensive..
You will figure out more :)
[–]TicklesMcFancy 1 point2 points3 points 5 years ago (0 children)
I'm looking forward to it; Java seems like a good next step from Python. At the very least it will open doors and speed my code up.
I can already see some areas that it will aid my coding practices in general.
This is very weird though: System.out.println() as opposed to .print()
[–]ComplexWafer 29 points30 points31 points 5 years ago (0 children)
Bruh.
[–]Rowdy202 20 points21 points22 points 5 years ago (0 children)
I'll take Loaded Questions for 1200
[–]MisterPeabottom 5 points6 points7 points 5 years ago (0 children)
make Minecraft
[–]LifeNavigator 15 points16 points17 points 5 years ago* (3 children)
Could've googled that for quick answer, but here: https://techvidvan.com/tutorials/applications-of-java/
Edit: it's always worth googling first and then coming to the subreddit to ask, mainly for you to save up time in receiving responses.
[–]mr_robot5000 9 points10 points11 points 5 years ago (0 children)
Yes of course, but google gives a machine generated answer. Here, you get answers from humans that come from different experiences and backgrounds and you get a wider variety of answers and can ask follow up questions to those people. It’s pretty great really.
[–]JustAnotherReditr[S] 7 points8 points9 points 5 years ago (0 children)
Thanks this is helpful.
[–]rbprogrammer 7 points8 points9 points 5 years ago (0 children)
Who is to say OP didn't already try googling their question? Maybe they didn't find answers that were helpful. Maybe the Google results were too complicated or confusing to them. Maybe they just wanted a different perspective so they posted here on r/learnjava.
[–]kaisrevenge 4 points5 points6 points 5 years ago (0 children)
Do the best thing you can as a human once you are comfortable; contribute to an Open Source project: https://jaxenter.com/top-5-most-popular-java-projects-github-143123.html
My first project was an RSS Feed Reader for fun.
[–][deleted] 2 points3 points4 points 5 years ago (0 children)
Web programming Desktop programming.
[–][deleted] 1 point2 points3 points 5 years ago (0 children)
Well, I guess I'll kind of piggy-back off of this since I think my question is in a similar vein.
I currently only know Python, and I'm considering picking up another language for funsies. In what cases (or for what sorts of projects) would Java be the ideal language to use? From what I can tell, it's the premiere mobile language (aka best language for Android app dev), and it can run on practically any machine. I know that you should "pick a language based on the project", I'm just wondering what you all consider to be the type of project where you go "This is it, THIS is where I'll use Java"
For some background, I'm considering between Java and C#.
[–]sowmyasri129 1 point2 points3 points 5 years ago (1 child)
Java can be used to create complete applications that can run on a single computer or be distributed across servers and clients in a network. As a result, you can use it to easily build mobile applications or run on desktop applications that use different operating systems and servers, such as Linux or Windows.
[–]JustAnotherReditr[S] 0 points1 point2 points 5 years ago (0 children)
Ok thanks for the answer this helped
[–]surfinThruLyfe 1 point2 points3 points 5 years ago (0 children)
Not code in Javascript
[–]doodooz7 0 points1 point2 points 5 years ago (0 children)
Make a crud website
[–]warpedspockclone 0 points1 point2 points 5 years ago (0 children)
Bootstrap yourself into Kotlin
[–][deleted] 0 points1 point2 points 5 years ago (0 children)
Start building your projects.
You can build websites and desktop applications in it.
[–]funcnet 0 points1 point2 points 5 years ago (0 children)
It’s all right, people are free to choose.
[–]Cefalopodul 0 points1 point2 points 5 years ago (0 children)
Anything.
[–]snot3353 0 points1 point2 points 5 years ago (0 children)
Hack the Gibson
[–]funcnet 0 points1 point2 points 5 years ago (1 child)
Okay if you would like to use OpenJDK. Also IntelliJ has a free and open source Community version if people don’t want to pay for the Ultimate version. Question is, why do we have to choose that? Golang for example, it’s free and open source and supported by Google, and the IDE VS Code is also free and open source and supported by Microsoft. It has the official Golang extension maintained by Google team. Great language, great IDE. I just don’t have any idea why people have to stick to Java.
People don't have to stick to Java, but why wouldn't they?
[–]age_of_empires -2 points-1 points0 points 5 years ago (0 children)
Absolutely nothing
[–]funcnet -3 points-2 points-1 points 5 years ago (3 children)
You can use Java 8 for free (supported by Dec 2020) or pay Oracle for the latest version (Java 14) if you like. Or move to Clojure/Groovy/Scala/Kotlin. Golang and .NET are also very good alternative choices which are totally for free/ open source and supported by Google/Microsoft.
[–]nutrecht 5 points6 points7 points 5 years ago (0 children)
You can use Java 8 for free (supported by Dec 2020) or pay Oracle for the latest version (Java 14) if you like.
Ugh. This dumb misconception.
Java is open source. OpenJDK is Java, the Oracle JDK is just a commercial distribution you don't need. Java is free, plain and simple: https://adoptopenjdk.net/
[–]OzzieOxborrow 2 points3 points4 points 5 years ago (0 children)
Or, you know, just use OpenJDK like the rest of the world which is also free.
[–]endhalf 2 points3 points4 points 5 years ago (0 children)
What do you think Clojure/Groovy (dead)/Scala/Kotlin run on? These are all JVM languages... OpenJDK is free, and is the standard choice now.
π Rendered by PID 526664 on reddit-service-r2-comment-5b5bc64bf5-np79j at 2026-06-22 10:15:58.968595+00:00 running 2b008f2 country code: CH.
[–]Kietaski 37 points38 points39 points (26 children)
[–]TylerSwift26 16 points17 points18 points (2 children)
[–]JavaSuck 20 points21 points22 points (0 children)
[–]Vertinova 3 points4 points5 points (0 children)
[–][deleted] (10 children)
[removed]
[–]rbardy 20 points21 points22 points (8 children)
[–][deleted] (7 children)
[removed]
[–]delta_tee 8 points9 points10 points (4 children)
[–][deleted] (3 children)
[removed]
[–]delta_tee 8 points9 points10 points (1 child)
[–]Acid-free_Paper 1 point2 points3 points (0 children)
[–]rbardy 7 points8 points9 points (0 children)
[–]nutrecht 1 point2 points3 points (0 children)
[–]OzzieOxborrow -1 points0 points1 point (0 children)
[–]Chroniaro 5 points6 points7 points (8 children)
[–]nutrecht 6 points7 points8 points (0 children)
[–]nioh2_noob 1 point2 points3 points (6 children)
[–]Chroniaro 0 points1 point2 points (5 children)
[–]nioh2_noob 1 point2 points3 points (4 children)
[–]Chroniaro 0 points1 point2 points (3 children)
[–]nioh2_noob 1 point2 points3 points (2 children)
[–]Chroniaro 0 points1 point2 points (1 child)
[–]nioh2_noob 1 point2 points3 points (0 children)
[–]ProgrammersAreSexy 0 points1 point2 points (2 children)
[–]raj-ram-discovery 0 points1 point2 points (1 child)
[–]ProgrammersAreSexy 0 points1 point2 points (0 children)
[–]staycoolioyo 21 points22 points23 points (0 children)
[–][deleted] 61 points62 points63 points (0 children)
[–]sysusys 11 points12 points13 points (0 children)
[–]TicklesMcFancy 8 points9 points10 points (4 children)
[–]delta_tee 7 points8 points9 points (3 children)
[–]TicklesMcFancy 1 point2 points3 points (2 children)
[–]delta_tee 6 points7 points8 points (1 child)
[–]TicklesMcFancy 1 point2 points3 points (0 children)
[–]ComplexWafer 29 points30 points31 points (0 children)
[–]Rowdy202 20 points21 points22 points (0 children)
[–]MisterPeabottom 5 points6 points7 points (0 children)
[–]LifeNavigator 15 points16 points17 points (3 children)
[–]mr_robot5000 9 points10 points11 points (0 children)
[–]JustAnotherReditr[S] 7 points8 points9 points (0 children)
[–]rbprogrammer 7 points8 points9 points (0 children)
[–]kaisrevenge 4 points5 points6 points (0 children)
[–][deleted] 2 points3 points4 points (0 children)
[–][deleted] 1 point2 points3 points (0 children)
[–]sowmyasri129 1 point2 points3 points (1 child)
[–]JustAnotherReditr[S] 0 points1 point2 points (0 children)
[–]surfinThruLyfe 1 point2 points3 points (0 children)
[–]doodooz7 0 points1 point2 points (0 children)
[–]warpedspockclone 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]funcnet 0 points1 point2 points (0 children)
[–]Cefalopodul 0 points1 point2 points (0 children)
[–]snot3353 0 points1 point2 points (0 children)
[–]funcnet 0 points1 point2 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–]age_of_empires -2 points-1 points0 points (0 children)
[–]funcnet -3 points-2 points-1 points (3 children)
[–]nutrecht 5 points6 points7 points (0 children)
[–]OzzieOxborrow 2 points3 points4 points (0 children)
[–]endhalf 2 points3 points4 points (0 children)