A method in Java is a function or a procedure that is written within an object class or an interface.
It is a property of the class. Its accessibility or being called by programs or functions outside the class is dependent on its way of declaration.
A function is written using the rules of methods. A method can be a constructor method, destructor method, or a method to do some processing on the data given by user.
A method has a return value type, input parameters and a name in its signature. (heading of the function). A method has a body in which the processing on the input parameters is specified in terms of program statements.