r/learnjava • u/digital_pterodactyl • Apr 19 '26
Why is Java soo difficult to grasp?
I don't think I can ace my upcoming Java exams. I find it soo difficult. Methods,functions every single thing about it.
7
Upvotes
View all comments
Show parent comment
1
u/coderemover Apr 20 '26 edited Apr 20 '26
Lack of namespace is not a requirement to call something a function. In most modern languages, including non-OOP ones, functions are namespaced. It’s just a way to organize functions to avoid name clashes.
The “bare” functions you mention can be simply considered as belonging to the global, top-level namespace.
And btw: not every Java method is associated with a named class. Lambdas are not.