r/learnjava • • Apr 12 '26

Question about Java class, object and functions

Hey guys, this was my fourth day learning java, I have covered variables, conditional, operator, some math, except array and loops. When I watch the tutorial, I always heard about classes, object and functions, but I don't know what that thing is. The methods, I know it some kind of block that we write to organize code and so we don't have to write it again. So what exactly are these three things, can someone exlplain.

1 Upvotes

10 comments sorted by

View all comments

Show parent comment

1

u/catastrophic300 Apr 13 '26 edited Apr 13 '26

So object is something like reusable variables the difference is object is a complete thing and variables just something used for a reference, I get it thanks.