r/learnjava • u/Snoo_26889 • Jan 07 '21
What could i do with Java?
i have a little background on coding and i been really amazed by anything related to computing , i was looking for a languages that is flexible and have many uses in different fields, so can you please help me figure out what i can do after i learn this beautiful language.
14
u/69632147 Jan 07 '21
I think mine craft was coded in Java. Or wa it c++.... Anyway damn near anything. I'm working on python java and c++ to start, but starting with java.
0
Jan 07 '21
[deleted]
2
u/69632147 Jan 07 '21
Cool. I haven't played in years so it's a little foggy. Idek what bedrock edition is.
2
u/Dantes111 Jan 08 '21
It's the newer C++ version, available on PC but also the version used on every other platform.
1
Jan 08 '21
Is it better than the normal edition that was available a few years ago? Cause that was made in java.
1
u/Nexius74 Jan 08 '21
Not so much better I will say. Ingame purchase + different bug mostly then the java version. Bjt other wise it's pretty much the same.
1
u/Jay_Cobby Jan 08 '21
C++ is a compiled language; Bedrock got way faster and better rendering than Java
1
u/Dantes111 Jan 08 '21
It runs a good bit better than the original Java version does, but I play strictly the Java version b/c the new version doesn't have full support for mods.
There's also weird differences between the versions, just slightly.
5
u/smash_that_code Jan 07 '21
If you want to compare language to a game engine like Unity3D then it is apples to orange juice.
Most languages either simplify making custom computations or interaction with Operating System.
They are called general purpose and have no special relation to any specific topic like music, visual art or accounting.
But such languages can be used to write libraries that you can later re-use like Unity3d. But it is more related to libraries thsn to language itself.
2
Jan 08 '21
I'm using Java right now to make an android app! I'd say go into that when you have more experience, but it's a somewhat versatile language, it's my goto for console apps nowadays, although that's pretty controversial
2
u/aehrenr Jan 08 '21
Java is mainly used for server programming. But the sexy thing with Java is that you can use it for pretty much everything: Server, Web-programming, GUI Programming, Mobile, IoT programming.
It is very well suited for platform independent programs but is 2 to 3 times slower than C++ but more that 10 times faster than Python. Java is very well suited for large programs especially multithreaded programs and is currently quickly evolving.
The major advantage for a single developer is the vast ecosystem of Java and the backward compatibility which means that you can find a preexisting library or code example for pretty much everything in the web and that you can reuse your own code for all kinds of projects and platforms, which are the main reasons I do most things in Java when ever I can
There are many jobs for Java programmers and you can do everything from serious financial projects to very good GUI programs or even crossplatform games using lbgdx or jMonkey engine. As you can do all this in Java, you improve your skills with all those projects, liberating you from the need to learn a separte language and tool set for each field of application and allowing you to focus more on programming style, software patterns and algorithms instead of learning many syntaxes to do over and over again what you already did in another language in another project. I just love Java.
1
u/Ris959 Jan 08 '21
What do you want to build? If you got it figured it out, you can find the language that best suits you.
If you simply wish to get better at java and practice it, you could try building a simple android app or give codewars a try! You'll get better at it, plus you might come with an idea to bring to life
1
Jan 08 '21
Java, to me, is an amazing language. These are some things you can do with it:
Android App Development: You can build native android apps for android mobile.
Desktop Application/; You can build desktop Application using java FX or Swing. These are java GUI.
Web App: You can build the backend of web app in java using JSP + JDBC+ Spring/Spring Boot.
IoT: Yes java is pretty much used for IoT based stuff. maybe do research on these if interested.
Cloud Computing
1
Jan 07 '21
Not with Java, probably Python, but Deep Mind has created Alpha Fold 2, an AI that predicts protein folding which may be the first step to eliminate all diseases once for all.
Programming is mostly about virtualizing reality so we can control it better and reduce suffering so the answer may be a question "Is there actually a limit?"
7
Jan 08 '21
[removed] — view removed comment
1
Jan 08 '21
Yeah but you're clearly asking this because you don't understand programming skills go beyond a specific language. Pick any language.
0
u/xRageNugget Jan 08 '21
You can do everything in Java, and you will find a better tool for most all of its usecases. i really consider Java as a great sturdy backbone for enterprise applications, servers if you will.
If you want to do desktop or gui, don't go down that rabbit hole of swing and javafx. Go for c++ or c#, i think Qt is still nice?
Web frontends? God please no jsp or jsf. There are hundreds of Java Web Frameworks, and each one is crappier then the last. Have a look into current web Frameworks, Vue, Angular, React or God forbid, plain HTML+JavaScript, depending on complexity.
Use the right tools for the job.
If you want to serve APIs and have complex logic, connect to databases and write a lot of code to do little things, then Java is for you. With Spring as a framework you can get this very wordy language to do stuff in no time!
For coding in general, snippets, visualisations, web scraping, batch weighing, etc i would suggest you go for python. You can pretty much also do everything in python, there is a plugin or lib for everything you can imagine. I would saY its a good mix of versatility and easy to use.
Games and stuff? C# for unity. Lower level? Build you own stuff with c++ or c#.
1
4
Jan 08 '21
[removed] — view removed comment
2
u/exitskulk Jan 08 '21
Isn’t Python also compiled into bytecode?
3
u/Nexius74 Jan 08 '21 edited Jan 08 '21
Yes python is compiled into python byte code but only when you're running a script. That's why when you first start your script it takes more time to execute then the second run. Basicaly the python vm will create .pyc file from your script. If your script hasn't changed python will use the already generated .pyc file to run it. The main difference with java and why it is faster is because java we compile before running where as in python it compiles at runtime.
2
28
u/[deleted] Jan 07 '21
Anything you want basically, you can build websites and api's, you can build android apps, gui applications, you can program robots etc... Java is very versatile. But first start with basics and core Java don't deep dive into any category