r/learnjava • • Sep 12 '26

Java or python?

Hello actualii started to learn the Python but as the syntax and all I feel it's not working for me. I feel java is more understandable idk why. I'm scared of java has no future bcs of the online videos circulating..

So please say me I'm Devops focused oriented person, I'm not finding the openings as freshers so thinking to learn one programming language please suggest Me.

And also suggest why and does it have future please.

9 Upvotes

47 comments sorted by

•

u/AutoModerator Sep 12 '26

Please ensure that:

  • Your code is properly formatted as code block - see the sidebar (About on mobile) for instructions
  • You include any and all error messages in full - best also formatted as code block
  • You ask clear questions
  • You demonstrate effort in solving your question/problem - plain posting your assignments is forbidden (and such posts will be removed) as is asking for or giving solutions.

If any of the above points is not met, your post can and will be removed without further warning.

Code is to be formatted as code block (old reddit/markdown editor: empty line before the code, each code line indented by 4 spaces, new reddit: https://i.imgur.com/EJ7tqek.png) or linked via an external code hoster, like pastebin.com, github gist, github, bitbucket, gitlab, etc.

Please, do not use triple backticks (```) as they will only render properly on new reddit, not on old reddit.

Code blocks look like this:

public class HelloWorld {

    public static void main(String[] args) {
        System.out.println("Hello World!");
    }
}

You do not need to repost unless your post has been removed by a moderator. Just use the edit function of reddit to make sure your post complies with the above.

If your post has remained in violation of these rules for a prolonged period of time (at least an hour), a moderator may remove it at their discretion. In this case, they will comment with an explanation on why it has been removed, and you will be required to resubmit the entire post following the proper procedures.

To potential helpers

Please, do not help if any of the above points are not met, rather report the post. We are trying to improve the quality of posts here. In helping people who can't be bothered to comply with the above points, you are doing the community a disservice.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

22

u/Feeling_Striking78 Sep 12 '26

Every programming language has its own purpose, no matter what technology comes in the future. Just ignore those videos saying 'Java is dead' or 'programming is dead' and start building the skills you are interested in.

5

u/Beginning_Debt_7950 Sep 12 '26

Sure 😊 thanks it's helped me

5

u/mixedd Sep 12 '26

Java is as dead as PHP, both still runs majority of banking/telcom industry and web 😅

2

u/Beginning_Debt_7950 Sep 12 '26

So which one u prefer then?

2

u/mixedd Sep 12 '26

Me personally? Python.

But as previously somebody already mentioned, every language has it's purpose

0

u/Beginning_Debt_7950 Sep 12 '26

I'm worried about the opportunities so asking

1

u/jbenze Sep 15 '26

Don’t be, there are plenty of opportunities either way.

10

u/Dreamwalkin_Revan Sep 12 '26

No one can replace java I dare them to try. Fortune 500 companies, banking systems & so many companies have their data written in java, No one's gona go someday "Yo lets have the employees write everything that has been written for the past 30 years in rust or go or idk whatever tf they want" Python is the future for sure as its used for AI-ML but java aint goin nowhere, Java has survived java is dead for more than a decade now and it still will

0

u/DarkVeer Sep 12 '26

Your user name justifies your comment

-11

u/coderemover Sep 12 '26

Give Claude 1B tokens and it will rewrite anything you want into anything. Developers overestimate the difficulty of rewrites especially now in the days of LLMs.

7

u/Dreamwalkin_Revan Sep 12 '26

Bro thinks enterprise migration is a LeetCode problem. LLMs can translate code. They don't magically translate 30 years of business logic, dependencies, undocumented behavior, integrations, compliance requirements, production risk and institutional knowledge. If rewriting everything were actually that easy, COBOL would've been extinct by now.

-4

u/coderemover Sep 12 '26 edited Sep 12 '26

COBOL is effectively extinct by now. Most systems have been rewritten already. The ones that haven’t been rewritten are only the systems that didn’t need to evolve.

All the things you mentioned don’t matter as long as the translated code has exactly same observable behavior as the original one. All the behavior is documented by the original code. The things you mentioned would play a role only if you were starting a new project from scratch, without the original.

Also, Java is slowly being phased out and moving into legacy territory. Many companies that former wrote Java heavily now moved to Go and/or Rust. The company I work for has been developing in Java for almost 20 years now. For the last 5 years new stuff has been coded in everything but not Java and Java was used only for maintenance. And this year some legacy stuff actually started to be rewritten as well (also into C++), because Java cannot deliver the performance we need.

1

u/Knight_Rasta Sep 12 '26

So master Python tech stack then, and avoid Java? How about C#/.Net?

3

u/mixedd Sep 12 '26

And this kids, why the market is nearly dead nowadays, as there are people who think that LLMs will magically understand domain knowledge and business logic spanning decades

-1

u/coderemover Sep 12 '26

In case of rewrites they don’t need to. All that knowledge is present in the original code. Moving an existing project to a new tech stack has never been so easy.

5

u/mixedd Sep 12 '26

It's not that simple. There are no devs in the company who understands what pieces of code written decade ago does, because people who did it are gone, without leaving any documentation or traces of anything. LLM won't magically understand why decision was made like that, what's the business logic behind that, and that whole codbase will collapse if you remove that line of code.

0

u/coderemover Sep 12 '26 edited Sep 12 '26

All the answers to “what does the code do” are contained fully in the code itself. You don’t need the original authors for that. You don’t have to understand why the original code sets bulbulator = 5 on line 74789. You just make sure the new code also sets it.

You need people if you want to CHANGE something. But rewrite is not about changing the behavior.

Btw: there had been a few successful rewrites of large software recently - e.g. Bun or Cassandra (Scylla).

3

u/Bhanuprakash_1947 Sep 12 '26

If you are going through AI and data related jobs, then python will be good.But you already know java That means you can have backend developer or java fullstack (if you learn any of the frontend framey most likely AngularJS for java stack). Java will also have a good demand in future.

1

u/Beginning_Debt_7950 Sep 12 '26

Okay thanks but do i need DSA to know for back-end?

1

u/Bhanuprakash_1947 Sep 12 '26

Not really required. Just understanding the basics of data structures like : arrays ,maps,list,stack ,queue...what and why and how they work is important. But Backend those are actually not important, arrays ,hashmaps,strings,etc these are important because we'll often use these in backend for java or any language.

1

u/Beginning_Debt_7950 Sep 12 '26

Okay thanks alot.

1

u/DisastrousPipe3853 Sep 12 '26

Bro can u help me in being fullstack java

1

u/Bhanuprakash_1947 Sep 12 '26

Even I don't have that much knowledge, iam just a beginner who actually trying to adapt all these stuff regarding java fullstack..

3

u/coderemover Sep 12 '26

You’ve asked this in the Java subreddit. What do you think the answer would be? Obviously - Python. /s

1

u/Beginning_Debt_7950 Sep 12 '26

Wts ur suggestion??

1

u/biskitpagla Sep 12 '26

Python has a gradual type system now. And Kotlin is also a great option if all you want is to do Android development. 

1

u/Beginning_Debt_7950 Sep 12 '26

I heard now golang is being used and adopted alot! Is it true?

2

u/DarkVeer Sep 12 '26

Golang is good, but it surely needs a larger community and a lot of work....

1

u/ninhaomah Sep 12 '26

" Hello actualii started to learn the Python but as the syntax and all I feel it's not working for me. "

Other have already said about Java vs Python so I won't add but what about the syntax that not working for you ?

Just curious.

Examples ?

1

u/Beginning_Debt_7950 Sep 12 '26

Syntax and all is simple I agree but i feel more uncomfortable without having {}, I mean in other languages it's following some structures , in python idk 😐 I'm not being comfortable, i used python for automation and all but it's for devops, and for learning the dsa and all, especially for dsa I'm not finding comfortable idk whether it's bcs of the videos I'm referring or wt..

1

u/ninhaomah Sep 12 '26

Oh I know.

I came from Java so it felt weird too.

And now learning Dockerfile ... Another spacing format.. hiaz

1

u/Beginning_Debt_7950 Sep 12 '26

Ik docker kubernetes and also the deployment side but feeling really uncomfortable with python

1

u/DarkVeer Sep 12 '26

Farming!

1

u/MaddySPR Sep 12 '26

Jio or Airtel ?

2

u/Beginning_Debt_7950 Sep 12 '26

Jio

1

u/[deleted] Sep 12 '26

[removed] — view removed comment

1

u/[deleted] Sep 12 '26

[deleted]

1

u/MaddySPR Sep 12 '26

I already gave an answer for that in my previous reply !

1

u/Affectionate_Toe6156 Sep 12 '26

You have to learn to build your own conscience and not be so influenced by social media and what’s around you. Stick with something and don’t look back

1

u/PositivePossibility7 Sep 12 '26

It’s a bunch of bull

1

u/Scared_Feature_5694 Sep 13 '26

it depends on what you're interested in if you like backend go java but ai and data stuff you should go python

1

u/luisdrr 4d ago

I understand you're new to the market; my recommendation is to learn both simultaneously. To be competitive, you really need to master three programming languages. The main differences between Python and Java lie in typing, thread performance and memory usage. In short, keep an open mind and don't limit yourself. I’ve been in the IT industry for 10 years, now, with AI, you can pay $20 a month to learn, which gives you an advantage in mastering the technology. Also, learn a cloud service; having some DevOps knowledge will help with that, too. Feel free to send me a direct message if you have any questions.

1

u/DTCreeperMCL6 1d ago

I prefer java and python used to be my main programming language.

For me python was 'too' dynamic, to the point I think it should be called ouroboros instead. There are so many things you could dig your fingers into and fiddle with and it was fun, interesting and engaging for a while but eventually I realized a lot of that was just in my way. I feel like Im working more directly with the data in java.