r/learnjava • • 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

65 comments sorted by

View all comments

Show parent comments

1

u/Gaarco_ Jul 17 '20

Methods are called methods in every oop language, it's not because of java, same with encapsulation, inheritance, polymorphism etc.

And not using these concepts means you are not using either java and oop

2

u/potatopotaatopututu Jul 17 '20

Nope...not in C++. A C++ programmer would generally call it a member function or just a function...unless he used to be a Java programmer before.

0

u/Gaarco_ Jul 17 '20

Yes I know, it's not pure oop in fact

2

u/potatopotaatopututu Jul 17 '20

What do you mean by pure OOP? How do you define that? As far as I know, C++ is as much OOP as Java is.

0

u/Gaarco_ Jul 17 '20

In Java everything is an object, in C++ this rule is not applied

2

u/potatopotaatopututu Jul 17 '20

Primitives are primitives in Java too. But I get what you're saying. My point is that methods and functions aren't entirely different concepts. In fact the difference is not significant in many cases.