Java's methods take the place of the functions or procedures that programmers talk about when they work with other languages. Methods are much like functions and procedures, except that each method definition must be embedded in a class definition.