r/AskProgramming • • May 23 '26

Python or Java

im in my last year and figuring out which programming lang is for me but confused betn java and python i love both cause im comfortable with both but want to focus on one which one of them is best suited in future too.

things i know: python is readable and easy than java

python is used in ai because of its simplicity

java is suitable for secure appln(banking sys)

4 Upvotes

38 comments sorted by

View all comments

Show parent comment

1

u/Psy_Fer_ May 23 '26

I actually agree with you. I would just add that learning multiprocessing with queues and how to keep memory low, and how to do architecture to make multiprocessing work well will teach someone a lot, and will probably naturally push them into "well if it wasn't python I could just do this threading thing I keep seeing everywhere". Not sure how common it is for people to write C and then wrapper libraries for threading, but I've done it a few times.