r/learnjava • • Nov 25 '20

why do people hate java so much?

why do people hate java? I personally really love java because of the OOP paradigm and it makes my codes cleaner. not to mention the portability. but i swear I see more than one tweet hating on java everyday, or saying java is dying. is java really dying?

I guess I have two questions; why do people hate on java and is there still a future for java?

120 Upvotes

88 comments sorted by

View all comments

Show parent comments

3

u/Koyomii-Onii-chan Nov 25 '20

I have no idea what you are talking about. That is the main method, you can't have a program without it in Java, The main method has to be in a main class

If you are talking about the printing using static blocks

static{

System.out.print("Hello World");

}};

then you need to tell the JVM to not check for a main method. If you are talking about applets that is a different thing but still requires a class

1

u/Vandenite Nov 25 '20

fair enough