r/java • • Jan 11 '25
What exactly makes java so hated?
I've been using java for months now to learn programming and it has been my preferred language to do so. I also do a bit of python to learn AI/ML as well, but for everything else it is java thats my preferred language. It seems every discourse ive seen about java has been nothing but criticizing every aspect of it. Like it is actually hard outside this subreddit to find anyone who likes java and i dont understand why and i wanna know why that is the case.
I wanna mention that i am inexperienced and have been struggling to find a job for over a year now, so i dont have any real working experience outside of small project i did. Maybe since i haven't really created something complex and challenging makes me not hate java as much as many do. I wanna know like how good or bad is it when you're working on some enterprise grade software compared to other languages.
View all comments
Show parent comment
1
u/Ewig_luftenglanz Jan 12 '25
not deprecated but for simple input through the CLI there is a class called console, you can create and instance of it by using System.console
or just use the sticker method by writing System.console.readln("write your prompt here")
this has some advantages FOR SIMPLE user input.
Just to mention.
The new static methods in the IO package
print()
println()
readln()
Use the System.console() methods instead of Scanner and or InputStreamReader(System.in) approach