r/learnjava • u/TacticalWalther • Jul 17 '20
Can Anyone Do Java?
I'm a college student who previously did Javascript and is now doing Java.
I'm finding Java horrifically hard. I thought that since I had a background in javacscript, I would have a easier time picking it up but I'm not.
Why? Why am I having a breakdown over it? Is it because javascript is more artsy and java is more mathy? I am an artsy person (not a math person) so that's why I'm asking.
What advice do you have for someone who is learning it? IT FEELS LIKE A COMPLETELY DIFFERENT SUBJECT FROM JAVASCRIPT! I'm starting to wonder if I'm just not built for it.
So my question is, is it meant for everyone? Can everyone do it?
62
Upvotes
2
u/tells Jul 17 '20
yes. i did it. look into the features introduced into java 8. some of those things should look familiar to you if you know how array functions like `map` work.
Types are really helpful although feels cumbersome when you're used to just creating a POJO all the time. Learning obj oriented stuff like interfaces, abstract classes etc will help you form the patterns that are used in dependency injection frameworks.
There are a lot of different ways to write the same thing in Java. knowing the "good parts" is just as applicable here as it is in Javscript.