r/learnjava • • Feb 08 '22

Does Java really not have functions?

Hi, I'm brand new to Java.

I googled "Does Java have functions" and the first/top result says, "There are no functions per se in Java. All you've got is methods."

I'm not sure what the latter part of that means, but you really can't create functions in Java?

Thanks, sorry for the noob question

7 Upvotes

23 comments sorted by

View all comments

2

u/dissusgsbkl Feb 09 '22

method = part of a class

function = not part of a class

this is the technical definition anyway