Question: are methods and functions the same in java?
Answer: Methods and functions are the same thing. You call a function a function when it is outside of a class, and you call a function a method when it is written inside a class. Method is the concept of Object Oriented programming where a method is a member of a class which mostly does processing on the class members.